Hi,
I have some problems.
For my solr progame, I want to type only the Query String and get all field
result that includ the Query String. But now I can't get any result without
specified field. For example, query with "tina" get nothing, but
"Sentence:tina" could.

I hava adjusted the *schema.xml* like this:

<fields>
>    <field name="CategoryNamePolarity" type="text" indexed="true"
> stored="true" multiValued="true"/>
>    <field name="CategoryNameStrenth" type="text" indexed="true"
> stored="true" multiValued="true"/>
>    <field name="CategoryNameSubjectivity" type="text" indexed="true"
> stored="true" multiValued="true"/>
>    <field name="Sentence" type="text" indexed="true" stored="true"
> multiValued="true"/>
>
>    <field name="allText" type="text" indexed="true" stored="true"
> multiValued="true"/>
> </fields>
>
> <uniqueKey required="false">Sentence</uniqueKey>
>
>  <!-- field for the QueryParser to use when an explicit fieldname is absent
> -->
>  <defaultSearchField>allText</defaultSearchField>
>
>  <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
>  <solrQueryParser defaultOperator="OR"/>
>
> <copyfield source="CategoryNamePolarity" dest="allText"/>
> <copyfield source="CategoryNameStrenth" dest="allText"/>
> <copyfield source="CategoryNameSubjectivity" dest="allText"/>
> <copyfield source="Sentence" dest="allText"/>


I think the problem is in <defaultSearchField>, but I don't know how to fix
it. Could anyone help me?

Thanks
Yang

Reply via email to