lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Using n-grams vs AnalyzingInfixLookupFactory for suggestions in solr
Date Sun, 26 Jun 2016 16:27:43 GMT
1> The difference is that the factory returns the original field
from a "sidecar" index. If you're content with just firing a standard
query at your main index and returning the associated fields
then you can do this from the main index. You won't be able
to do the sophisticated stuff with weights though.


3> You can have multiple suggesters in the same component.


On Thu, Jun 23, 2016 at 10:21 PM, Harsha JSN <> wrote:
> Hi,
>    I have some doubts regarding usage of AnalyzingInfixLookupFactory as
>  lookup implementation for suggestions.
> 1.) AnalyzingInfixLookupFactory constructs n-grams for the suggestion field
> while building suggestions index. If the main index which is used for
> search is already having n-grams for this field, is it still preferred to
> choose  AnalyzingInfixLookupFactory or can we directly build suggestions
> from the main index?
> 2.) Also, AnalyzingInfixLookupFactory returns duplicate records if the
> suggestion field has same value in multiple documents. Instead if i search
> suggestions from main index (n-grams) i can eliminate the duplicates by
> grouping the results. But grouping can be a complex operation.Can you guide
> the correct approach here?
> 3.) Choosing FuzzyLookupFactory looks beneficial, but we have to filter the
> results over user context and also we need to provide infix search
> capabilities for suggestions which we can't.
> Can some one please help on this? Thanks in advance.
> Harsha.

View raw message