RE: Maven repository for lucene trunk

2012-02-14 Thread Steven A Rowe
Hi Sudarshan, I think this wiki page has the info you want: Steve > -Original Message- > From: sudarsh...@gmail.com [mailto:sudarsh...@gmail.com] On Behalf Of > Sudarshan Gaikaiwari > Sent: Tuesday, February 14, 2012 10:01 PM

Maven repository for lucene trunk

2012-02-14 Thread Sudarshan Gaikaiwari
HI I would like to add dependencies on the lucene trunk in my maven project. Maven central does not seem to have the trunk artifacts. http://search.maven.org/#search%7Cga%7C1%7Clucene Is there a maven repository with the lucene trunk jars. I would prefer to add a dependency on such a repository

Re: Merging results from two searches on two separate Searchers

2012-02-14 Thread liat oren
Thanks a lot! Liat On 14 February 2012 20:06, Uwe Schindler wrote: > Hi, > > To merge TopDocs with "compatible scores", you can use the new Lucene > (since 3.3) method: TopDocs.merge(). Just execute the query on different > indexes with same topdocs count and execute this method. > > Uwe > > ---

RE: Merging results from two searches on two separate Searchers

2012-02-14 Thread Uwe Schindler
Hi, To merge TopDocs with "compatible scores", you can use the new Lucene (since 3.3) method: TopDocs.merge(). Just execute the query on different indexes with same topdocs count and execute this method. Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail:

Re: Merging results from two searches on two separate Searchers

2012-02-14 Thread Trejkaz
On Wed, Feb 15, 2012 at 11:46 AM, Uwe Schindler wrote: > Scores are only compatible if the query is the same, which is not the case > for you. > So you cannot merge hits from different queries. So I guess in the case where the different query parsers happen to generate the same query, it's safe

Re: Merging results from two searches on two separate Searchers

2012-02-14 Thread Greg Bowyer
Out of sheer curiosity what makes scores different across queries, I am not suggesting they should be the same, just filling in terrible gaps in my knowledge that I have not quite fathomed yet during source diving On 14/02/12 16:46, Uwe Schindler wrote: Scores are only compatible if the query

Re: Merging results from two searches on two separate Searchers

2012-02-14 Thread liat oren
Hi, I have a similar problem - only in my case, the query is the same, but I use different indexes with different fields names (this is why I need to separate the search). Is it possible to merge these two sets of results? Thanks a lot, Liat On 14 February 2012 19:46, Uwe Schindler wrote: > Sco

RE: Merging results from two searches on two separate Searchers

2012-02-14 Thread Uwe Schindler
Scores are only compatible if the query is the same, which is not the case for you. So you cannot merge hits from different queries. - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Trejkaz [mailto:trej.

Merging results from two searches on two separate Searchers

2012-02-14 Thread Trejkaz
Hi all. We have 1..N indexes for each time someone adds some data. Each time they can choose different tokenisation settings. Because of this, each text index has its own query parser instance. Because each query parser could generate a different Query (though I guess whether they do or not is ano

Searching by similarity using term vectors

2012-02-14 Thread Mike O'Leary
If I have indexed a set of documents using term vectors, is there support in Lucene to treat a list of query terms as a small document, create a term vector for it, and find documents by computing similarity between the query's term vector and the term vectors in the index? If so, what API funct

Re: Top matched data should be on Top

2012-02-14 Thread Erick Erickson
You cannot simply count words like this and expect the docs to be ordered as you imply. The problem is that the lengths of the fields are encoded an a byte (or perhaps an int, I forget). Thus, some loss of precision is inherent in the process. You have to encode values from 1 to 2^31 or so in somet

Re: Can I use multiple writers of different applications on a same FSDirectory?

2012-02-14 Thread Cheng
thanks On Wed, Feb 15, 2012 at 1:14 AM, Mihai Caraman wrote: > you can use a fsdirectory for each writer and then, search on all of them > at once. This is the recomended way if you have different apps. > > În data de 14 februarie 2012, 19:06, Ian Lea a scris: > > > You can only have one writer

Re: Can I use multiple writers of different applications on a same FSDirectory?

2012-02-14 Thread Mihai Caraman
you can use a fsdirectory for each writer and then, search on all of them at once. This is the recomended way if you have different apps. În data de 14 februarie 2012, 19:06, Ian Lea a scris: > You can only have one writer against one index at a time. Lucene's > locking will prevent anything el

Re: Can I use multiple writers of different applications on a same FSDirectory?

2012-02-14 Thread Ian Lea
You can only have one writer against one index at a time. Lucene's locking will prevent anything else. -- Ian. On Tue, Feb 14, 2012 at 4:49 PM, Cheng wrote: > Hi, > > I need to manage multiple applications, each having its own writer yet on a > same FSdirectory. How to make it happen while I

Re: When to refresh writer?

2012-02-14 Thread Cheng
thanks On Tue, Feb 14, 2012 at 2:22 AM, Michael McCandless < luc...@mikemccandless.com> wrote: > IndexWriter doesn't require refreshing... just keep it open forever. > It'll run it's own merges when needed (see the MergePolicy/Scheduler). > > Just call .commit() when you want changes to be durabl