RE: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-12 Thread Reitzel, Charles
Fwiw, we ended up preferring the 4.x spellcheck approach. For starters, it is supported by SolrJ ... :-) But more importantly, we wanted a mix of both terms and field values in our suggestions. We found the Suggester component doesn't do that. We also weren't interested in matching in the

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-07 Thread O. Olson
Thank you Erick. I'm sorry I did not mention this earlier, but I am still on Solr 4.10.3. Once I upgrade to Solr 5.0+ , I would consider your suggestion in your blog post. O. O. Erick Erickson wrote Uh, you mean because I forgot to pate in the URL? Siih... Anyway, the URL is irrelevant

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-07 Thread Rajesh Hazari
Good to know that its working as expected. I have some couple of question on your autosuggest implementation. I see that you are using SpellcheckComponent instead of SuggestComponent are you using this intentionally if not plz read this

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-07 Thread Alessandro Benedetti
When working with Suggesters I suggest to take a deep look to this guide : http://lucidworks.com/blog/solr-suggester/ It was really helpful. Cheers 2015-05-07 16:58 GMT+01:00 Rajesh Hazari rajeshhaz...@gmail.com: Good to know that its working as expected. I have some couple of question on

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-07 Thread O. Olson
Thank you Erick. I have no clue what you are referring to when you used to word this? Are you referring to my question in my original email/message? Erick Erickson wrote Have you seen this? I tried to make something end-to-end with assorted gotchas identified Best, Erick --

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-07 Thread O. Olson
Thank you Rajesh for your persistence. I now got it to work. In my original email/message, I mentioned that I use 'text_general' as defined in the examples: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/example-DIH/solr/db/conf/schema.xml?view=markup I'm sorry I did not mention this

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-07 Thread Erick Erickson
Uh, you mean because I forgot to pate in the URL? Siih... Anyway, the URL is irrelevant now that you've solved your problem, but in case you're interested: http://lucidworks.com/blog/solr-suggester/ Sorry for the confusion. Erick On Thu, May 7, 2015 at 9:12 AM, Alessandro Benedetti

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-07 Thread O. Olson
Thank you Rajesh, Alessandro and Erick. I apparently did not have much knowledge about the Suggester - in fact I had no clue that there is a difference between the SpellcheckComponent and the SuggestComponent. I would be reading about this, esp. Erick blog post on Lucidworks. O. O. Rajesh

Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-06 Thread O. Olson
I'm trying to get the AnalyzingInfixSuggester to work but I'm not successful. I'd be grateful if someone can point me to a working example. Problem: My content is product descriptions similar to a BestBuy or NewEgg catalog. My problem is that I'm getting only single words in the suggester

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-06 Thread Rajesh Hazari
yes textSuggest is of type text_general with below definition fieldType name=text_general class=solr.TextField positionIncrementGap=100 sortMissingLast=true omitNorms=true analyzer type=index tokenizer class=solr.ClassicTokenizerFactory/ filter class=solr.ClassicFilterFactory/

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-06 Thread O. Olson
Thank you Rajesh. I think I got a bit of help from the answer at: http://stackoverflow.com/a/29743945 While that example sort of worked for me, I'm not had the time to test what works and what didn't. So far I have found that I need the the field in my searchComponent to be of type 'string'. In

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-06 Thread Erick Erickson
Have you seen this? I tried to make something end-to-end with assorted gotchas identified Best, Erick On Wed, May 6, 2015 at 3:09 PM, O. Olson olson_...@yahoo.it wrote: Thank you Rajesh. I think I got a bit of help from the answer at: http://stackoverflow.com/a/29743945 While that

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-06 Thread O. Olson
Thank you Rajesh for responding so quickly. I tried it again with a restart and a reimport and I still cannot get this to work i.e. I'm seeing no difference. I'm wondering how you define: 'textSuggest' in your schema? In my case I use the field 'text' that is defined as: field name=text

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-06 Thread Rajesh Hazari
Just add the queryConverter definition in your solr config you should use see multiple term suggestions. and also make sure you have shingleFilterFactory as one of the filter in you schema field definitions for your field text_general. filter class=solr.ShingleFilterFactory maxShingleSize=5

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-06 Thread Rajesh Hazari
I just tested your config with my schema and it worked. my config : searchComponent class=solr.SpellCheckComponent name=suggest1 lst name=spellchecker str name=namesuggest/str str name=classnameorg.apache.solr.spelling.suggest.Suggester/str str

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-06 Thread Rajesh Hazari
make sure you have this query converter defined in your config queryConverter name=queryConverter class=org.apache.solr.spelling.SuggestQueryConverter/ *Thanks,* *Rajesh**.* On Wed, May 6, 2015 at 12:39 PM, O. Olson olson_...@yahoo.it wrote: I'm trying to get the AnalyzingInfixSuggester to

Re: Trying to get AnalyzingInfixSuggester to work in Solr?

2015-05-06 Thread O. Olson
Thank you Rajesh. I'm not familiar with the queryConverter. How do you wire it up to the rest of the setup? Right now, I just put it between the SpellCheckComponent and the RequestHandler i.e. my config is as: searchComponent class=solr.SpellCheckComponent name=suggest lst