Hmmm .. But ngrams with KeywordTokenizerFactory instead of the
WhitespaceTokenizerFactory work just as fine. Related issues?

Cheers
Avlesh

On Wed, Sep 23, 2009 at 12:27 PM, Shalin Shekhar Mangar <
shalinman...@gmail.com> wrote:

> On Wed, Sep 23, 2009 at 12:23 PM, Avlesh Singh <avl...@gmail.com> wrote:
>
> > I have a "prefix_token" field defined as underneath in my schema.xml
> >
> > <fieldType name="prefix_token" class="solr.TextField"
> > positionIncrementGap="1">
> >    <analyzer type="index">
> >        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
> >        <filter class="solr.LowerCaseFilterFactory" />
> >        <filter class="solr.EdgeNGramFilterFactory" minGramSize="1"
> > maxGramSize="20"/>
> >    </analyzer>
> >    <analyzer type="query">
> >        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
> >        <filter class="solr.LowerCaseFilterFactory" />
> >    </analyzer>
> > </fieldType>
> >
> > Searches on the field work fine and as expected.
> > However, attempts to highlight on this field does not yield any results.
> > Highlighting on other fields work fine.
> >
>
>
> Won't work until SOLR-1268 comes along.
>
>
> http://www.lucidimagination.com/search/document/4da480fe3eb0e7e4/highlighting_in_stemmed_or_n_grammed_fields_possible
>
> --
> Regards,
> Shalin Shekhar Mangar.
>

Reply via email to