How can I define a new Solr field? In the tutorial, the schema should be changed. after modifying the field in xml, I found that php cannot connect to solr. I don't know why Solr is a beginner. How can I define some fields if I want to customize them? In the tutorial, the field in schema. xml should be changed, but after modification, it is found that php cannot connect to solr. I don't know why.
Reply content:
How can I define a new Solr field? In the tutorial, the field in schema. xml should be changed, but after modification, it is found that php cannot connect to solr. I don't know why.
I don't know what you mean when you say "php cannot connect to solr...
There are many situations where the word "cannot be connected"... it's like going to a hospital and telling the doctor that I have a stomachache and can't tell where it hurts...
In this way, I can only guess what the problem is...
I suppose your tomcat runs on 127.0.0.1... port 8080... the path is solr...
In this case, you should accessHttp: // 127.0.0.1: 8080/solr/
...
There will be a detailed error page... if you can see the following text on this page...
Severe errors in solr configuration.
It means that you have modified the schema...
About how to modifySchema. xmlTo redefine the field... in fact, I don't think how difficult it is...
In the fields area, there are still detailed annotations to teach you how to modify... how can this be corrected...
If I want to give you some advice, I will check your spelling again and again./>
End...
If it still doesn't work, you can give me the comment you added... it's easier to locate the problem, isn't it ..?