Adding custom filter plugin to solr cloud

2016-04-13 Thread Harsha JSN
Hi,
  I had set up solr cloud with some set of nodes. I am trying to add an
external library which has custom query parser logic. I have done this by
copying the custom jar file to lib folder in each node.
May i know if this is the correct way to do or is there a standard way to
add custom libraries in solr cloud.

Thanks
Harsha.


Using n-grams vs AnalyzingInfixLookupFactory for suggestions in solr

2016-06-24 Thread Harsha JSN
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.