Re: Index design question

2005-08-06 Thread Otis Gospodnetic
Hi, > If you store only IDs in Lucene, you won't be able to search using > > keywords (text). > > > Let me explain better. Suppose I have an index field called > categories which > contains a list of ids for each post. For example - 1 2 45 198. Now I > can > search on the contents field but re

Re: Index design question

2005-08-06 Thread N. C. Deepak Ramesh
Hi, If you store only IDs in Lucene, you won't be able to search using > keywords (text). Let me explain better. Suppose I have an index field called categories which contains a list of ids for each post. For example - 1 2 45 198. Now I can search on the contents field but restricted to all po

Re: Index design question

2005-08-06 Thread Otis Gospodnetic
Hi, > Let me describe my issue taking a simpler model. Lets say I were to > build a > blog which allows each post to have multiple keywords. I want to > provide a > search over the posts but restricted to a subset of the keywords (say > - > python, windows, etc.). How can I structure the index

Re: Lock Issue

2005-08-06 Thread Chris Hostetter
: index is locked when IndexReader is opening index. After that (when : index structure is read) lock is released. which means it sounds like your 30 threads are each trying to open seperate searchers, which should be unneccessary. Try opening one (Singleton) searcher and having all of your threa