Re: A key value field storing

2012-03-21 Thread Ian Lea
Ah, I see. More complicated than I realized. How about using two sorts of documents. Type 1, one lucene doc for your example textid: 1234 text: some text about something Type 2, 3 lucene docs for your example First textid: 1234 company: IBM score: 0.6 Second textid: 1234 company:

RE: A key value field storing

2012-03-21 Thread Uwe Schindler
remen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Deb Lucene [mailto:deb.luc...@gmail.com] > Sent: Wednesday, March 21, 2012 4:48 PM > To: java-user@lucene.apache.org > Subject: Re: A key value field storing > > Hi Ian, > > Thanks f

Re: A key value field storing

2012-03-21 Thread Deb Lucene
Hi Ian, Thanks for the reply. I am not sure if the bq solution will b able to solve the problem. Let me explain with an example - document 1 - (some text) IBM - 0.6 Google - 0.1 Apple - 0.4 Now suppose I index the document based on the "company name" and "confidence scores" separately and search

Re: A key value field storing

2012-03-21 Thread Ian Lea
Why do you want to link name and confidence in one field? Store confidence as a NumericField and search something like BooleanQuery bq = new BooleanQuery(); Query nameq = parser.parse(...) or whatever Query confq = NumericRangeQuery.newXxx(...); bq.add(nameq, ...); bq,add(confq, ...); and search

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