ot;)) {
>>>>builder.append(termAttribute.term());
>>>>
>>>>}
>>>>incremented = true;
>>>> }
>>>>
>>>>
}
>>>
>>> token.setTermBuffer(builder.toString());
>>>
>>> if (incremented == true)
>>> return token;
>>>
>>> return null;
>&
t;> I'm not sure if this is a safe way to do this, as i'm not familar with the
>> whole solr/lucene implementation after all.
>>
>>
>> best
>>
>>
>> -robert
>>
>>
>>
>>
>>>
>>> Then lowercase, remove white
the token, then when making your queries for
>> auto-complete, be sure to use a query parser that doesn't do
>> "pre-tokenization", the 'field' query parser should work well for this.
>>
>> Jonathan
>>
>>
>&
>
>
> ____________
> From: Robert Gründler [rob...@dubture.com]
> Sent: Wednesday, November 10, 2010 6:39 PM
> To: solr-user@lucene.apache.org
> Subject: Concatenate multiple tokens into one
>
> Hi,
>
> i'
__
From: Robert Gründler [rob...@dubture.com]
Sent: Wednesday, November 10, 2010 6:39 PM
To: solr-user@lucene.apache.org
Subject: Concatenate multiple tokens into one
Hi,
i've created the following filterchain in a field type, the idea is to use it
for autocompletion purposes:
Hi,
i've created the following filterchain in a field type, the idea is to use it
for autocompletion purposes:
With that kind of filterchain, the EdgeNGramFilterFactory will receive multiple
tokens on input strings with whitespaces in it. This leads to the following
results:
I