Re: Aggregating category hits

2006-05-15 Thread Kapil Chhabra
Even I am doing the same in my application. Once in a day, all the filters [for different categories] are initialized. Each time a query is fired, the Query BitSet is ANDed with the BitSet of each filter. The cardinality obtained is the desired output. @Eric: I would like to know more about the

Re: Aggregating category hits

2006-05-15 Thread Erik Hatcher
On May 15, 2006, at 5:07 PM, Marvin Humphrey wrote: If you needed to know not just the total number of hits, but the number of hits in each "category", how would you handle that? For instance, a search for "egg" would have to produce the 20 most relevant documents for "egg", but also a list

Re: IndexUpdateListener

2006-05-15 Thread karl wettin
On Mon, 2006-05-15 at 06:35 +0200, karl wettin wrote: > Perhaps I can find a way to select notification strategy using > the same listener interface. I mostly look for the Solr-kind-of-solution for now, but I will absolutely keep my mind set on that the layer should allow hooks deep in the code.

Re: Aggregating category hits

2006-05-15 Thread Andrzej Bialecki
Marvin Humphrey wrote: Greets, If you needed to know not just the total number of hits, but the number of hits in each "category", how would you handle that? For instance, a search for "egg" would have to produce the 20 most relevant documents for "egg", but also a list like this: Holi

Aggregating category hits

2006-05-15 Thread Marvin Humphrey
Greets, If you needed to know not just the total number of hits, but the number of hits in each "category", how would you handle that? For instance, a search for "egg" would have to produce the 20 most relevant documents for "egg", but also a list like this: Holiday & Seasonal / Easte

Re: Position of a word in a document?

2006-05-15 Thread Daniel Naber
On Montag 15 Mai 2006 21:34, Arturo Perez wrote: > Does this mean that the Highlighter needs to be redone to take advantage > of this?  Or has the highlighter already been updated? No, it has not been updated yet. Regards Daniel -- http://www.danielnaber.de --

Re: Position of a word in a document?

2006-05-15 Thread Arturo Perez
Daniel Naber danielnaber.de> writes: > On Montag 15 Mai 2006 14:54, Franz Coriand wrote: > > is it possible not only to get the document which contains the words of > > a query, but also get the position in the text of the query word? > > Yes, by using the term vectors with positions that were ad

Re: How to merge lucene indexes ???

2006-05-15 Thread Daniel Naber
On Montag 15 Mai 2006 21:09, Ariel Isaac Romero wrote: > I'd lose others indexes I have merged into master index before, that's > why I can't put the boolean parameter true. Use the "true" parameter to create a *new* index, not to overwrite an existing one. Regards Daniel -- http://www.danie

Re: How to merge lucene indexes ???

2006-05-15 Thread Ariel Isaac Romero
I think that do not solve my problem, because the line who's throwing the exception is this : IndexWriter fsWriter = new IndexWriter(fsDir, analyzer.getAnalyzer(), false); Besides if I create a new master index each time I'm going to merge them I'd lose others indexes I have merged into master i

Re: Position of a word in a document?

2006-05-15 Thread Daniel Naber
On Montag 15 Mai 2006 14:54, Franz Coriand wrote: > is it possible not only to get the document which contains the words of > a query, but also get the position in the text of the query word? Yes, by using the term vectors with positions that were added in Lucene 1.9 (see class Field.TermVector)

Re: How to merge lucene indexes ???

2006-05-15 Thread Daniel Naber
On Montag 15 Mai 2006 19:51, Ariel Isaac Romero wrote: >                 IndexReader indexToMerge = > IndexReader.open(IndexToMerge); AnalyzerHandler analyzer = new > AnalyzerHandler(); IndexWriter fsWriter = new IndexWriter(fsDir, > analyzer.getAnalyzer(), false); Don't open a reader, supply an

How to merge lucene indexes ???

2006-05-15 Thread Ariel Isaac Romero
Hi every body: I need to know how to merge an index into another. I have a master index whose another indexes are added to it from others nodes . I want to merge indexes from the others nodes to master index, I made this method: public void merge(String MasterIndexDir, String IndexTo

RE: Can lucene do this?

2006-05-15 Thread Steve FromMoreover
Hi Scott, I saw your email and thought of some work I have been doing recently for matching text on the fly. If you are not going to be keeping the emails for later searching then this may provide a faster and easier way of checking your email. It involves using monq which is a java api - h

Lucene in JBoss

2006-05-15 Thread pbatcoi
Hi, does anyone know an up to date integration of Lucene into JBoss. ejIndex - JBoss MBean for Lucene seems to be out of date. Thanks! Stefan and Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Position of a word in a document?

2006-05-15 Thread Franz Coriand
Hi Lucene-users, is it possible not only to get the document which contains the words of a query, but also get the position in the text of the query word? Franz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: IndexUpdateListener

2006-05-15 Thread Eric Jain
Chris Hostetter wrote: THe only usefull callback/listner abstractions i can think of are when you want to know if someone has finished with a set of changes -- wether that change is adding one document, deleting one document, or adding/deleting a whole bunch of documents isn't really relevent, yo