How to redefine the field in solr + php

Source: Internet
Author: User
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 ..?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.