Re: HitCollector and Sort Objects

2006-07-01 Thread Nadav Har'El
On Thu, Jun 29, 2006, James Pine wrote about "HitCollector and Sort Objects": > I have one type of search where I pass in a Query and > a Sort (built with a SortField and Decompresses) and > deal with the Hits object, and another which takes a > Query and a HitCollector, which I then run my own > s

Re: Null field values

2006-07-01 Thread Erick Erickson
When you indexed the fields you can't get back, did you use Field.Store.YES? I've been confused by the fact that Luke can "reconstruct" fields that aren't stored, but are indexed If that isn't the problem, perhaps you could post some code snippets. Best Erick

Re: Sorting & SQL-Database

2006-07-01 Thread Michael D. Curtin
Dominik Bruhn wrote: Hy, i use Lucene to index a SQL-Table which contains three fields: a index-field, the text to search in and another field. When adding a lucene document I let Lucene index the search-field and also save the id along with it in the lucene index. Uppon searching I collect

RE: how Boolean query work internally in lucene

2006-07-01 Thread Amit
Thanks Paul for quick reply. regards, Amit -Original Message- From: Paul Elschot [mailto:[EMAIL PROTECTED] Sent: Saturday, July 01, 2006 2:22 PM To: java-user@lucene.apache.org Subject: Re: how Boolean query work internally in lucene On Saturday 01 July 2006 09:37, Amit wrote: > Hi All,

Re: how Boolean query work internally in lucene

2006-07-01 Thread Paul Elschot
On Saturday 01 July 2006 09:37, Amit wrote: > Hi All, > > I just want to know how the lucene processes the Boolean query internally?? > > As per my knowledge: > >if I search for "java apache". This is a PhraseQuery internally in Lucene. >Note: let consider i want documents that content

Re: Any existing query types that support equivalent of "-not interested" ?

2006-07-01 Thread Paul Elschot
On Saturday 01 July 2006 01:10, markharw00d wrote: > > >Maybe this: > > > >SpanNotQuery(interested, SpanNearQuery(not,interested)) > > > >with a SpanTermQuery for each term? > > > > > > Thanks, Paul. This is working well for me and I can happily use multiple > SpanTermQueries embedded in a Spa

Re: Sorting & SQL-Database

2006-07-01 Thread Aleksander M. Stensby
Well, it is common in most databasesystems, that if you dont specify a sort, you get the results sorted by id, or by when the rows are inserted into the db. The quickest way for you is to write around your query. instead of doing one query, just do where queries with equals. this would prod

Re: Sorting & SQL-Database

2006-07-01 Thread karl wettin
On Sat, 2006-07-01 at 01:10 +0200, Dominik Bruhn wrote: > SELECT id,addfield FROM table WHERE id IN ([LUCENERESULT]); > > Where LUCENERESULT is like 2,3,19,3,5. > > This works fine but got one problem: The Search-Result of Lucene is order by > relevance and so the id-list is also sorted by rele

RE: how Boolean query work internally in lucene

2006-07-01 Thread Amit
Hi All, I just want to know how the lucene processes the Boolean query internally?? As per my knowledge: if I search for "java apache". Note: let consider i want documents that contents both words and i constructed boolean query for that (i.e. +java +apache). Please let me clear if i w

FW: how Boolean query work internally in lucene

2006-07-01 Thread Amit
Hi All, I just want to know how the lucene processes the Boolean query internally?? As per my knowledge: if I search for "java apache". Note: let consider i want documents that contents both words and i constructed boolean query for that (i.e. +java +apache). Please let me clear if i