solr - Can not search in the field which I defined in schema.xml like copyField -


i've added schema.xml multivalued field in following way:

<field name="text_qs" type="text" indexed="true" stored="false" multivalued="true"/> 

and added 2 fields it:

<copyfield source="name" dest="text_qs"/> <copyfield source="symbol" dest="text_qs"/> 

after perform indexing of solr, restart it, still can not search in field text_qs. checked search text_qs:ge in solr admin http://localhost:8061/solr/admin/.

could please ask why?

in general, tried create search in fields. because can search in field text_def, <defaultsearchfield>text_def</defaultsearchfield>. , field text_def defined in similar way like:

<field name="text_def" type="text" indexed="true" stored="false" multivalued="true"/> 

it has nor copyfields:

<copyfield source="name" dest="text_def"/> <copyfield source="symbol" dest="text_def"/> <copyfield source="numb" dest="text_def"/> .... 

so when type 'ge' search 'ge' in default search field text_def, , search in fields 'name', 'symbol', 'numb',.... want search in 'name' , 'symbol'. , that's why try create field text_qs.

does correct?

try change stored=true

<field name="text_qs" type="text" indexed="true" stored="true" multivalued="true"/> 

true if value of field should retrievable during search.


Comments