Adding Documents to index in a batch process

2007-06-28 Thread Kai Weber
Hello, In my application I have to add documents to the index as follows: 1. build the document to add from a repository 2. obtain an IndexWriter 2. add document to index 4. write and optimize index, close writer 5. goto 1 until no documents left I must work with a legacy code witch does the doc

Re: Adding Documents to index in a batch process

2007-06-28 Thread Kai Weber
* Erick Erickson <[EMAIL PROTECTED]>: > I guess I don't understand the problem. Can you build the documents > from within a loop or not? If you can, it's simple... > > open indexwriter > while (build a document) >write to index > > close/optimize. > > Or are you saying that you can't build f

Using KeywordAnalyzer with stop word filter

2007-07-08 Thread Kai Weber
Hello, I want to parse my query string as follows: * filter out stop words (from GermanAnalyzer) * ignore every string field:foo * search words exactly as written (key_word not "key word") on a certain field Example (using english words): Querystring: how cool is a crazyanalyzer -test -baz:foo b