Re: index and search question

2004-06-20 Thread Incze Lajos
On Sun, Jun 20, 2004 at 09:46:42AM +, Dmitrii PapaGeorgio wrote: > Let's say I index documents using this > > Document doc = new Document(); > doc.add(Field.Text("file1", (Reader) new InputStreamReader(is))); > doc.add(Field.Text("file2", (Reader) new InputStreamReader(is2))); >

index and search question

2004-06-20 Thread Dmitrii PapaGeorgio
Let's say I index documents using this Document doc = new Document(); doc.add(Field.Text("file1", (Reader) new InputStreamReader(is))); doc.add(Field.Text("file2", (Reader) new InputStreamReader(is2))); And want to do a search like this file1:Word file2:Word2 Basically doing a search

RE : amusing interaction between advanced tokenizers and highlighter

2004-06-20 Thread Rasik Pandey
> A question before I dive into coding a fix: can I assume (for > all analyzers) that the tokens produced by the tokenStream > have the following property: >currentToken.startOffset() >= lastToken.startOffset() > > The analyzers I have tested the highlighter with so far have > the property: >