Re: A key value field storing

2012-03-21 Thread Deb Lucene
eanQuery bq = new BooleanQuery(); > Query nameq = parser.parse(...) or whatever > Query confq = NumericRangeQuery.newXxx(...); > bq.add(nameq, ...); > bq,add(confq, ...); > > and search using bq. > > > -- > Ian. > > > On Wed, Mar 21, 2012 at 2:20 PM, Deb Lucene w

A key value field storing

2012-03-21 Thread Deb Lucene
Hi Group, Sorry for cross posting! We need to index a document corpus (news articles) with some meta data features. The meta data are actually company names with some scoring (a double, between 0 to 1). For example, two documents can be - document 1 (some text - say a technical article from NY t

Re: Multi field search with values

2012-03-20 Thread Deb Lucene
Hi group, Is there any way to index a document based on a key value (key = text, value = double) pair? For example, we have a situation where - document 1 IBM - 0.5 Google - 0.9 Apple - 0.3 document 2 IBM - 0.6 Google - 0.1 Apple - 0.4 now we need to search using two fields, the name (e.g. "I

Re: Multi field search with values

2012-03-14 Thread Deb Lucene
dd(qthresh, ...) > > and use bq in the search call. > > > -- > Ian. > > > On Wed, Mar 14, 2012 at 3:32 PM, Deb Lucene wrote: > > Hi Group, > > > > I am working on a Lucene search solution for multiple fields. So far, if > > the fields are of string type I

Multi field search with values

2012-03-14 Thread Deb Lucene
Hi Group, I am working on a Lucene search solution for multiple fields. So far, if the fields are of string type I am having no difficulties in retrieving using the MultiFieldQueryParser. For example, my indexing and searching logic look like this - indexing - I am indexing a corpus on the conten