I did this with Luke before and the query worked fine, that why I was
surprised. It seems CLucene drops the first word with a whitespace
analyser. I can continue to look into it.

Norman

On Sat, Jun 26, 2010 at 12:25 PM, Itamar Syn-Hershko <ita...@code972.com> wrote:
> This will be easiest to test with Luke. See what has been indexed, and
> if everything looks fine try inspecting the query returned from the
> QueryParser (I assume?), and call explain if necessary.
>
> Itamar.
>
> On 26/6/2010 12:33 AM, Norman Barker wrote:
>> Hi,
>>
>> I am using a whitespace analyser when writing my documents to the
>> index when I do a query such as
>>
>> When the incoming value is "Test Data" (no quotes)
>>
>> q=Te* returns zero where as Da* returns the document id as expected so
>> it looks like the query doesn't take the first token.
>>
>> Is this a bug or am I doing something stupid (more likely!).
>>
>> Many thanks,
>>
>> Norman
>>
>> ------------------------------------------------------------------------------
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit.  See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> _______________________________________________
>> CLucene-developers mailing list
>> CLucene-developers@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/clucene-developers
>>
>>
>>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> CLucene-developers mailing list
> CLucene-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/clucene-developers
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to