I'm using Solr 6.2 (tried with 6.1 also)

I created a new core and the only change I made is adding the
following line in my schema.xml

<field name="body_text_en" type="text_general" multiValued="true"
indexed="true" stored="true" termVectors="true" termPositions="true"
termOffsets="true" />

I've indexed two simple xml files. Here's a sample:

<field name="id">foo bar</field>
<field name="body_text_en">foo bar</field>

I'm executing a simple query:

And here is the response:

        "id":"foo bar",
        "body_text_en":["foo bar"],
        "id":"foo bar2",
        "body_text_en":["I strongly suspect that foo bar"],
    "foo bar":{
      "body_text_en":["<em>foo</em> <em>bar</em>"]},
    "foo bar2":{
      "body_text_en":["I strongly suspect that <em>foo</em> <em>bar</em>"]}}}

If I append hl.useFastVectorHighlighter=true to my query the
highlighter correctly highlights the phrase as <em>foo bar</em>. Of
course I've tried explicitly appending hl.usePhraseHighlighter=true to
my query but I get the same result. I would like to get the same
result with the standard highlighter if possible.


Reply via email to