lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan LaPlante" <blapla...@netwebapps.com>
Subject Re: searching data indexed from database??
Date Sat, 31 May 2003 17:14:03 GMT
Yes it is supported in 1.2 I used it in my search tag.
http://cvs.apache.org/viewcvs/jakarta-lucene-sandbox/contributions/taglib/WE
B-INF/classes/com/netwebapps/taglib/search/SearchTag.java

Relevant lines of code are
line 439, 461, 469,275


----- Original Message -----
From: "Anthony Eden" <me@anthonyeden.com>
To: "Lucene Users List" <lucene-user@jakarta.apache.org>
Sent: Saturday, May 31, 2003 11:49 AM
Subject: Re: searching data indexed from database??


> Take a look at org.apache.lucene.queryParse.MultiFieldQueryParser.  It
> allows you to past a list of field names to search on rather than just a
> single field name.
>
> Regarding your second question, the query you specified works fine in
> 1.3 RC 1 although I am not familiar enough with 1.2 to know whether it
> was supported there or not.
>
> Sincerely,
> Anthony Eden
>
> Venkatraman, Shiv wrote:
>
> >I have an indexer that reads data from database and indexes the data.
> >  foreach(db_row) {
> >      Document doc = new Document();
> >      doc.add(Field.Text("Product", productName);
> >      doc.add(Field.Text("Description", productDesc);
> >...
> >      writer.addDocument(doc);
> >  }
> >
> >
> >Once indexed, I would like to do a search that spans across multiple
fields.
> >i.e. the user may enter "lawnmower" and it should perform a search across
> >all the indexed fields. Also, how do I pass user queries like  "lawnmower
> >-grass" to the query API?
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>


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


Mime
View raw message