Hi Anil,
Your search URL suggest/?q="michael ja" and fieldType (without PatternReplaceFilterFactory)
is correct.
However looking in to your response carefully I see that you have numFound="0" no results.
And results you point come form "suggest" (probably suggester component). But in this approach
(auto completion with NGrams) suggestions will be simply your search results. Remove suggester
component from RequestHander.
I suspect
* you are not querying correct field
* you are not populating that field via copyField
What is your default search field? Can you send/post complete solrconfig.xml and schema.xml?
--- On Sat, 9/1/12, aniljayanti <anil.jayanti@gmail.com> wrote:
> From: aniljayanti <anil.jayanti@gmail.com>
> Subject: Re: AW: AW: auto completion search with solr using NGrams in SOLR
> To: solr-user@lucene.apache.org
> Date: Saturday, September 1, 2012, 8:28 AM
> Hi,
>
> Thanks,
>
> As i already used "KeywordTokenizerFactory" in my earlier
> posts.
>
> <fieldType name="edgytext" class="solr.TextField"
> positionIncrementGap="100"
> omitNorms="true">
> <analyzer type="index">
> *<tokenizer
> class="solr.KeywordTokenizerFactory" />
> <filter
> class="solr.LowerCaseFilterFactory" />
> <filter
> class="solr.PatternReplaceFilterFactory" pattern="\s+"
> replacement=" " replace="all"/>
> <filter
> class="solr.EdgeNGramFilterFactory" minGramSize="1"
> maxGramSize="15" side="front" />
> * </analyzer>
> <analyzer type="query">
> *<tokenizer
> class="solr.KeywordTokenizerFactory" />
> <filter
> class="solr.LowerCaseFilterFactory" />
> <filter
> class="solr.PatternReplaceFilterFactory" pattern="\s+"
> replacement=" " replace="all"/>
> * </analyzer>
> </fieldType>
>
> getting same results.
>
> AnilJayanti
>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/auto-completion-search-with-solr-using-NGrams-in-SOLR-tp3998559p4004871.html
> Sent from the Solr - User mailing list archive at
> Nabble.com.
>
|