Intersect two indices

2005-11-26 Thread Sebastian Menge
Hey all! Im interested in intersecting two indices. Or more exactly, I only want those terms of index A that also occur in index B. How could i do that (efficiently)? Sebastian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Question of strategy with respect to multiple field types within one piece of a document

2005-11-26 Thread Alan Chandler
I am trying to think through the approach I should take to build my blog using lucene (see thread above "Searching Textile Documents"). As you can see from that thread, I am thinking of making the body of my "Document" a coded form of text which ultimately gets translated into html. So I am cu

Re: Intersect two indices

2005-11-26 Thread Chris Hostetter
: Im interested in intersecting two indices. Or more exactly, I only want : those terms of index A that also occur in index B. : : How could i do that (efficiently)? look at the TermEnum class, and the IndexReader.terms() method. It iterates over the Terms in order. If you open a reader for eac

Highlight the searched word when full-text searching performed

2005-11-26 Thread Jerry Stern
Hi all, I wonder how to highlight the searched word when full-text searching performed based on Lucene. At the indexing stage, the contents of a original file is regarded as a FIELD of a Lucene document: private static void indexFile(File file, IndexWriter idxWriter) throws IOException {

MS-Word docs.

2005-11-26 Thread Steven Bell
Hi, I am stumped. I can't seem to get word docs indexed. I have tried both POI and textmining libraries to little or no real affect. I dump the doc files into a text file with the same variable I use in the Lucene doc.add(Field.UnStored("content", textStr));| and they look fine in the file. Ho