Solr ran using maven doesn't return same result as downloaded version -
i successful in running solr instance(version 4.7.0) using maven. custom fields added schema doesn't seems responding generic queries. below custom fields added
<field name="doc_id" type="string" indexed="true" stored="true" omitnorms="false"/> <field name="doc_name" type="text_autocomplete" indexed="true" stored="true" multivalued="true" omitnorms="false"/> <field name="doc_author" type="text_autocomplete" indexed="true" stored="true" multivalued="true" /> <field name="modifieddate" type="text_autocomplete" indexed="true" stored="true" multivalued="true"/> <field name="doc_content" type="text_autocomplete" indexed="true" stored="true" multivalued="true" omitnorms="false"/> <field name="doc_title" type="text_autocomplete" indexed="true" stored="true" multivalued="true"/> <field name="doc_description" type="text_autocomplete" indexed="true" stored="true" multivalued="true" omitnorms="false"/>
also used copyfields copy contents submit these fields 'text', configuration as,
<copyfield source="doc_name" dest="text" /> <copyfield source="doc_content" dest="text" /> <copyfield source="doc_description" dest="text" />
but queries solr instance doesn't return after posting 3 test documents xml. example, localhost:8986/solr/select?q=cow doesnt return thing.
but query returns me right results,
localhost:8986/solr/select?q=doc_content:cow
<response> <lst name="responseheader"> <int name="status">0</int> <int name="qtime">133</int> <lst name="params"> <str name="q">doc_content:*cow*</str> </lst> </lst> <result name="response" numfound="1" start="0"> <doc> <str name="doc_id">7783</str> <arr name="doc_name"> <str>cow</str> </arr> <arr name="doc_author"> <str>nsd80</str> </arr> <arr name="modifieddate"> <str>11 30</str> </arr> <arr name="doc_content"> <str>cow life history. cow life cycle. cow foods</str> </arr> <arr name="doc_title"> <str>titled</str> </arr> <arr name="doc_description"> <str>cow lifecycle</str> </arr> <long name="_version_">1480039145179971584</long> </doc> </result> </response>
why not copying custom field contents text?
cheers!
Comments
Post a Comment