Re: Get Suggester to return same phrase as query

2013-05-08 Thread Rounak Jain
Thanks, Erick. The link you gave me is mostly about getting Suggester working with Phrases, which I've already done with queryAnalyzerFieldType and no custom code. What my main issue is that the query itself isn't getting returned *if *it is an actual word/token in my index. So for example if a

Get Suggester to return same phrase as query

2013-05-07 Thread Rounak Jain
Hi, I'm using the Suggester component in Solr, and if I search for iPhone 5 the suggestions never give me the same phrase, that is iPhone 5. Is there any way to alter this behaviour to return iPhone 5 as well? A backup option could be to always display what the user has entered in the UI, but I

Re: Get Suggester to return same phrase as query

2013-05-07 Thread Erick Erickson
Hmmm, R. Muir did some work here: https://issues.apache.org/jira/browse/SOLR-3143, note that it's 4.0 or later. I haven't implemented this, but this is a common problem so if you do dig into it and get it to work (warning, I haven't a clue) it'd be a great contribution to the Wiki. Best Erick On