On 20.01.11 22:19, Jonathan Rochkind wrote:
> On 1/20/2011 4:03 PM, Martin Jansen wrote:
>> I'm looking for an<analyzer>  configuration for Solr 1.4 that
>> accomplishes the following:
>>
>> Given the input "abc xyz foo" I would like to add at least the following
>> token combinations to the index:
>>
>>     abc
>>     abc xyz
>>     abc xyz foo
>>     abc foo
>>     xyz
>>     xyz foo
>>     foo
>>
> Why do you want to do this, what is it meant to accomplish?  There might be a 
> better way to accomplish what it is you are trying to do; I can't think of 
> anything (which doesn't mean it doesn't exist) that what you're actually 
> trying to do would be required in order to do.  What sorts of queries do you 
> intend to serve with this setup?

I'm in the process of setting up an index for term suggestion. In my use
case people should get the suggestion "abc foo" for the search query
"abc fo" and under the assumption that "abc xyz foo" has been submitted
to the index.

My current plan is to use TermsComponent with the terms.prefix=
parameter for this, because it seems to be pretty efficient and I get
things like correct sorting for free.

I assume there is a better way for achieving this then?

- Martin

Reply via email to