lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zaccheo Bagnati (JIRA)" <>
Subject [jira] [Created] (SOLR-8537) phrase highlighter doesn't work when searching for phrase containing some stopwords
Date Tue, 12 Jan 2016 11:53:39 GMT
Zaccheo Bagnati created SOLR-8537:

             Summary: phrase highlighter doesn't work when searching for phrase containing
some stopwords
                 Key: SOLR-8537
             Project: Solr
          Issue Type: Bug
          Components: highlighter
    Affects Versions: 4.10.4
            Reporter: Zaccheo Bagnati
            Priority: Minor

When executing a phrase search containing 3 or more stopwords highlight is empty.
<?xml version="1.0" encoding="UTF-8" ?>
  <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
  <requestHandler name="/select" class="solr.SearchHandler" />
  <requestHandler name="/update" class="solr.UpdateRequestHandler" />
  <requestHandler name="/analysis/field" class="solr.FieldAnalysisRequestHandler" startup="lazy"/>
<?xml version="1.0" ?>
<schema name="${}">
    <fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/>
    <fieldtype name="string"  class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
    <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"
format="snowball" enablePositionIncrements="true"/>
    <field name="_version_" type="long"     indexed="true"  stored="true" />
    <field name="id" type="string" indexed="true" stored="true" multiValued="false" />
    <field name="document_text" type="text" indexed="true" stored="true" multiValued="false"

Load this document:
<field name="id">1</field>
<field name="document_text">a c b d a b c d e f g h i a f g b e</field>

Execute query:

This is the result:
        "document_text":"a c b d a b c d e f g h i a f g b e"}]

Highlighting for document 1 is empty!
Searching for "a b c d e f g" works correctly
This problem does not affect solr 5.4

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message