Re: AW: AW: auto completion search with solr using NGrams in SOLR

2014-10-01 Thread Erick Erickson
Perhaps your ngram filter is set to terminate at 14 (maxGram)? Best, Erick On Wed, Oct 1, 2014 at 3:18 AM, xoku wrote: > help me! > i can't find all result. > str name="spellcheck.count">200 > Ex: > i find: file > result expected: file name documentabcxyz > but solr return result (suggest: resul

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2014-10-01 Thread xoku
help me! i can't find all result. str name="spellcheck.count">200 Ex: i find: file result expected: file name documentabcxyz but solr return result (suggest: result term object) : - [suggestions:protected] => Array ( [0] => file [1] => file (whitespace)

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2014-04-08 Thread atpatil11
Hi I have done the same changes as you told & changed the code with my fields name. However I'm getting following error. I even reverted edited code but still its throwing same error. We're having Solr 4.6. When i restart the solr it says solr (pid 4610) already running. SolrCore Initialization Fa

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2013-10-28 Thread anurag.sharma
Hi ... I am trying to build autocomplete functionality using your post. But I am getting the following error *2577 [coreLoadExecutor-3-thread-1] WARN org.apache.solr.spelling.suggest.Suggester – Loading stored lookup data failed java.io.FileNotFoundException: /home/anurag/Downloads/solr-4.4.0/ex

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2013-01-24 Thread Naresh
Hi, You can fetch all the stored fields by passing them as part of *fl*parameter. Go through http://wiki.apache.org/solr/CommonQueryParameters#fl On Thu, Jan 24, 2013 at 8:56 PM, AnnaVak wrote: > Thanks for your solution it works for me too, I'm new with Solr but how I > can > additionally fetc

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2013-01-24 Thread AnnaVak
Thanks for your solution it works for me too, I'm new with Solr but how I can additionally fetch another fields not only field that was used for searching? For example I have product title and image fields and I want to get the title but also related to this title image ? How can I do this? Thanks

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-09-25 Thread aniljayanti
Hi, Finally got Solved using TermComponents. schema.xml -- URL : http://localhost:8080/solr/terms?*terms.fl=autocomplete_text&omitHeader=true&terms.sort=index&terms.prefix=mad* Response : *1 1

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-09-06 Thread aniljayanti
Hi, Thanks, Iam getting the results with below url. *suggest/?q="michael b"&df=title&defType=lucene&fl=title* But, i want the results in spellcheck section. i want to search with title or empname or both. Aniljayanti -- View this message in context: http://lucene.472066.n3.nabble.com/aut

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-09-05 Thread Ahmet Arslan
> i want to search with title and empname both. I know, I give that URL just to get the idea here. If you try suggest/?q="michael b"&df=title&defType=lucene&fl=title you will see that your interested will in results section not section. > or title or song...). Here (*suggest/?q="michael > b"&d

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-09-05 Thread aniljayanti
HI, Thanks, i want to search with title and empname both. for example when we use any search engine like google,yahoo... we donot specify any type that is (name or title or song...). Here (*suggest/?q="michael b"&df=title&defType=lucene*) we are specifying the title type search. I removed said

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-09-05 Thread Ahmet Arslan
aniljayanti wrote: > From: aniljayanti > Subject: Re: AW: AW: auto completion search with solr using NGrams in SOLR > To: solr-user@lucene.apache.org > Date: Wednesday, September 5, 2012, 7:29 AM > Hi, > > thanks, > > I m sending my whole config

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-09-04 Thread aniljayanti
Hi, thanks, I m sending my whole configurations in schema and solrconfig.xml files. schema.xml --- ***

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-09-04 Thread Kiran Jayakumar
I wonder why. I had a similar use case & works great for me. If you can send the snapshot of analysis for a sample string (say "hello world " for indexing, "hel" - positive case, "wo" - negative case for querying), then we can see whats going on. Also the debug query output would be helpful. On F

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-09-03 Thread aniljayanti
Hi, thanks, Im not able to attach asked xml files here. Can u give me ur Email id, so that i can send schema and solrconfig.xmls. Regards, AnilJayanti -- View this message in context: http://lucene.472066.n3.nabble.com/auto-completion-search-with-solr-using-NGrams-in-SOLR-tp3998559p4005141.h

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-09-01 Thread Ahmet Arslan
ld? Can you send/post complete solrconfig.xml and schema.xml? --- On Sat, 9/1/12, aniljayanti wrote: > From: aniljayanti > 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

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-31 Thread aniljayanti
Hi, Thanks, As i already used "KeywordTokenizerFactory" in my earlier posts. * * * * getting same results. AnilJayanti -- View this message in context: http://lucene.472066.n3.nabble.com/auto-

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-31 Thread Kiran Jayakumar
Try this: http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.KeywordTokenizerFactory On Thu, Aug 30, 2012 at 9:07 PM, aniljayanti wrote: > Hi, > > thanks, > > I checked with given changes, getting below error saying that SOLR is not > allowing without tokenizer. > > org.apache.

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-30 Thread aniljayanti
Hi, thanks, I checked with given changes, getting below error saying that SOLR is not allowing without tokenizer. org.apache.solr.common.SolrException: analyzer without class or tokenizer & filter list at org.apache.solr.schema.IndexSchema.readAnalyzer(IndexSchema.java:914) at org.apache.solr.sc

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-30 Thread Ahmet Arslan
> I tried with below said changes, but getting same result as > earlier. > > suggest/?q="michael ja" > --- > positionIncrementGap="100" > omitNorms="true"> >     >       class="solr.KeywordTokenizerFactory" /> >       class="solr.LowerCaseFilterFactory" /> >       class="s

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-30 Thread Kiran Jayakumar
You wouldnt need any tokenizer, I'm not sure if Solr will allow that. You also need to move the Edge n gram filter to index from query (I think Ahmet suggested this). It will look something like this: note that pattern

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-29 Thread aniljayanti
Hi, thanks, I added "PatternReplaceFilterFactory" like below.Getting results differently(not like suggester). You suggested to remove "KeywordTokenizerFactory" , "PatternReplace" is a FilterFactory, then which "TokenizerFactory" need to use ?

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-29 Thread aniljayanti
Hi thanks, I tried with below said changes, but getting same result as earlier. suggest/?q="michael ja" --- Response : - - 0 1 - - - 10 1 8 - *m

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-29 Thread Kiran Jayakumar
You need this for both index and query: http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PatternReplaceFilterFactory On Wed, Aug 29, 2012 at 4:55 AM, aniljayanti wrote: > Hi, > > thanks for ur reply, > > I donot know how to remove multiple white spaces using regax in the sear

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-29 Thread aniljayanti
Hi, thanks for ur reply, I donot know how to remove multiple white spaces using regax in the search text. Can u share me that one. Thanks, AnilJayanti -- View this message in context: http://lucene.472066.n3.nabble.com/auto-completion-search-with-solr-using-NGrams-in-SOLR-tp3998559p4003991.

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-29 Thread Ahmet Arslan
> Hi, > > thanks, > > I tried by adding " marks,  but still giving same > results. > > http://localhost:8080/test/suggest/?q="michael f" Looking back to your field type definition, i saw that you have defined in query analyzer. Move this into index analyzer. Restart solr, re-index and su

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-28 Thread Kiran Jayakumar
Since you have , during indexing time, it is going split the text on white spaces and then apply edge n-grams. If you remove this & may be replace it with a simpler regex which does basic clean up like removing multiple white spaces etc., then it will not match on the beginning of non-first words.

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-28 Thread Ahmet Arslan
You need to use quotes in your query : http://localhost:8080/test/suggest/?q="michael f" --- On Tue, 8/28/12, aniljayanti wrote: > From: aniljayanti > Subject: Re: AW: AW: auto completion search with solr using NGrams in SOLR > To: solr-user@lucene.apache.org > Da

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-04 Thread Ahmet Arslan
--- On Sat, 8/4/12, aniljayanti wrote: > From: aniljayanti > Subject: Re: AW: AW: auto completion search with solr using NGrams in SOLR > To: solr-user@lucene.apache.org > Date: Saturday, August 4, 2012, 8:57 AM > Hi > thanks, > > which doing searching i will searc

Re: AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-03 Thread aniljayanti
Hi thanks, which doing searching i will search either with empname or title only. And also not using any asterics in the query. ex : if i search with "mic" result should come like michale jackson michale border michale smith want the result just like google search. can us suggest me wht are t

AW: AW: auto completion search with solr using NGrams in SOLR

2012-08-02 Thread Markus Klose
.com] Gesendet: Donnerstag, 2. August 2012 09:34 An: solr-user@lucene.apache.org Betreff: Re: AW: auto completion search with solr using NGrams in SOLR Hi, thanks, im searching with empname filed. want to search with both "empname" and "title". below is my changed code.

Re: AW: auto completion search with solr using NGrams in SOLR

2012-08-02 Thread aniljayanti
Hi, thanks, im searching with empname filed. want to search with both "empname" and "title". below is my changed code. SOLR Query : http://localhost:8080/AC/select/?q=(*am*)&rows=500 1) want to search with "title" and "empname" both. 2) am i quering correctly with above url

AW: auto completion search with solr using NGrams in SOLR

2012-08-01 Thread Markus Klose
Your configuration of the fieldtype looks quite ok. In what field are you searching? "text"? " empname " ? "autocomplete_text"? If you are searching in "autocomplete_text " how do you add content to it? Is there another copyfield statement? If you are searching in "text" what fieldtype has that