how use ranges for numeric values?

2008-09-19 Thread Giannandrea Castaldi
Hi, I need to specify in my query ranges with product price. I wonder if the only solution is padding values with zeros. For example, if I'm looking for price between 3$ and 10$ I must write the query in this manner: price:[3.00 TO 00010.00]? Thanks. G

How specify the analyzer when created query with api?

2008-09-22 Thread Giannandrea Castaldi
Hi, In my webapp I'm trying to use the lucene api to build queries instead of the QueryParser but I haven't found out where to specify the Analyzer. Any help? Thanks. jean71 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: How specify the analyzer when created query with api?

2008-09-22 Thread Giannandrea Castaldi
On Mon, Sep 22, 2008 at 2:49 PM, Erick Erickson <[EMAIL PROTECTED]> wrote: > What do you mean when you say "trying to use the lucene api to build > queries"? > Are you trying to use BooleanQuery? If so, you either construct specific > clauses yourself (presumably by, say, tokenizing things yoursel

Re: How specify the analyzer when created query with api?

2008-09-22 Thread Giannandrea Castaldi
On Mon, Sep 22, 2008 at 5:42 PM, Erick Erickson <[EMAIL PROTECTED]> wrote: ... > > But isn't this the wonderful thing about tests? They > make your assumptions explicit, and when your > assumptions are incorrect, you find it with much less > pain than in a working program where you say "the most >