Building queries

2006-05-17 Thread Irving, Dave
Hi, First - thanks for Lucene! I started working with it a few days ago, bought the Lucene In Action book, and Im very impressed with both. Im integrating search in to an existing pet-project web application where new fields for index / search may be added via configuration. My idea is to have a

RE: Building queries

2006-05-17 Thread Irving, Dave
Hi, ... >> So, I just need to run the terms entered by the user in each field >> against the appropriate analyser, and build up the query that way. >> Does that sound like a sensible approach? Are there any >> code samples >> around showing how to run search phrases through analysers >> and

RE: Building queries

2006-05-17 Thread Irving, Dave
nylcauses exception. > > Hope this gives you some ideas, Dave. > > Marc > > - Original Message > From: Erik Hatcher <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org > Sent: Wednesday, 17 May, 2006 2:42:04 PM > Subject: Re: Building queries &g

Searching API: QueryParser vs Programatic queries

2006-05-22 Thread Irving, Dave
Hi, Im very new to Lucene - so sorry if my question seems pretty dumb. In the application Im writing, I've been "struggling with myself" over whether I should be building up queries programatically, or using the Query Parser. My searchable fields are driven by meta-data, and I only want to suppo

RE: Searching API: QueryParser vs Programatic queries

2006-05-22 Thread Irving, Dave
s like this may be what you are after. > > Otis > > - Original Message > From: "Irving, Dave" <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org > Sent: Monday, May 22, 2006 5:15:23 AM > Subject: Searching API: QueryParser vs Programatic queries >

RE: Searching API: QueryParser vs Programatic queries

2006-05-22 Thread Irving, Dave
queries > > If i understand correctly, is it that you dont want to make > use of query parse? > > You need to parse a query string without using query parser > and construct the query and still want an analyzer applied on > the outcome search. > > > On 5/22/0 p6

FW: Searching API: QueryParser vs Programatic queries

2006-05-22 Thread Irving, Dave
Erick Erickson wrote: ... > It seems to me that you can always do something like: > BooleanQuery bq; > QueryParser qp1 = new QueryParser("field1", "", analyzer); > Query q1 = qp1.parse("search term or clause); bq.add(q1,,,); > QueryParser qp2 = new QueryParser("field2", "", analyzer); > Query q

RE: Searching API: QueryParser vs Programatic queries

2006-05-22 Thread Irving, Dave
J.J. Larrea wrote: > I concur with your thoughts that there is room for such > utility classes, and that those would increase the use of > programmatic queries. I say this as a developer who also > "lazed out" and opted to simply construct a string and let > the QP do all the work (but who t

RE: Searching API: QueryParser vs Programatic queries

2006-05-23 Thread Irving, Dave
Chris Hostetter wrote: > typically, when build queries up from form data, each piece > of data falls into one of 2 categories: > > 1) data which doesn't need analyzed because the field it's going to > query on wasn't tokenized (ie: a date field, or a > numeric field, or a > boolean

RE: Searching API: QueryParser vs Programatic queries

2006-05-23 Thread Irving, Dave
> The QueryParser then adds the -- parsing -- on top of this, but can delegate for query delegation. That sould be "query creation", of course. > -Original Message- > From: Irving, Dave [mailto:[EMAIL PROTECTED] > Sent: 23 May 2006 08:30 > To: java-user@lucene

RE: Lucene in Action

2006-06-06 Thread Irving, Dave
It really helped me out loads and I would recommend it to anyone. I gave up trying to obtain it from amazon - but got it in 2 days from Blackwell Online (http://bookshop.blackwell.co.uk) > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of digby > Sent: 06 June 2006 11