Hello All,

I’m new to the world of Solr and hoping someone on this list can help me hit 
highlighting in solr.

I am trying to set up a hit highlighting in Solr and have been seeing some 
strange issues.

My core.xml file has a single tag <content> </content> which houses all the 
text in a document.

Using the Solr web interface I submit the following query : What is milk? – I 
get back many answers and in addition, just by selecting the hl box and 
entering ‘content’ in the hl.fl box I get hit highlighted portions of text.

However things stop working when I change the query to : What is lactose 
intolerance? I still get valid results but the highlighting section is full of 
empty arrays.

I’ve tried different combinations of commenting out the copyField, making 
content multivalued, but to be honest I’m trying things and hoping some 
configuration will work.

   <field name="id" type="string" indexed="true" stored="true" required="false" 
multiValued="false" />
    <field name="_version_" type="long" indexed="true" stored="false"/>
    <field name="_root_" type="string" indexed="true" stored="false" 
docValues="false" />
    <field name="_text_" type="text_general" indexed="true" stored="false" 
multiValued="true"/>

    <!-- Only enabled in the "schemaless" data-driven example (assuming the 
client
         does not know what fields may be searched) because it's very expensive 
to index everything twice. -->
    <copyField source="*" dest="_text_"/>

    <field name="text" type="text_general" indexed="true" stored="true" 
multiValued="false" />

<field name="content" type="text_en_splitting" indexed="true" stored="true" 
multiValued="false" />

Can someone help?

Thank you,
Al


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

Reply via email to