lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "WATHELET Thomas" <thomas.wathe...@europarl.europa.eu>
Subject RE: Query?
Date Tue, 11 Jul 2006 14:53:22 GMT
Ok now I have UN_TOKENIZED this field and now in LUKE I see the entire
term(SEC(2006) 0123) instead before I only see SEC.
And the wonderfull thing now that it's working.
Thank's a lot to Erik and Erick.

-----Original Message-----
From: Erick Erickson [mailto:erickerickson@gmail.com] 
Sent: 11 July 2006 16:34
To: java-user@lucene.apache.org
Subject: Re: Query?

What tokenizer did you use to index the document number? Just about all
tokenizers split on spaces, so you'd have indexed this as at least two
separate terms because of the space before the 0350. I'd really
recommend
downloading a copy of Luke so you can examine your index and see exactly
what got indexed. That's saved me a bunch of times....

I wonder whether you want to store this UN_TOKENIZED instead?

Best
Erick

On 7/11/06, WATHELET Thomas <thomas.wathelet@europarl.europa.eu> wrote:
>
> I have an index with this field:
> stored/uncompressed,indexed,tokenized<docnumber:SEC(2006) 0350>.
> I'm using RangeQuery to query the index:        TermQuery termQuery =
> new TermQuery(new Term("docnumber", "SEC(2006) 0350"));
>
> combinedQueries.add(termQuery, MUST);
>
> The query that I send is:
> SEC(2006) 0350
>
> The resulting query that Lucene produces :
> +docnumber:SEC\(2006\) 0350
>
> I'm using the class simpleanalyser for the search.
>
> And I have no result but this data SEC(2006) 0350 is present in the
> index "docnumber field"
>
> Thank's in advence
>
> Wathelet
> Thomas
>
> -----Original Message-----
> From: Erick Erickson [mailto:erickerickson@gmail.com]
> Sent: 11 July 2006 15:37
> To: java-user@lucene.apache.org
> Subject: Re: Query?
>
> Could you provide a bit more information? What's important or not
about
> this
> query? And how does that import relate to what you've indexed?
>
> In other words, what do you *want* it to mean?
>
> Best
> Erick
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message