how to implement searching "in time" efficiently

2007-08-23 Thread Kai Hu
Hi,all I want user could search record after he/she insert a record immediately use lucene, When user insert a record ,I add the document into the index files. When search I new an IndexSearcher instance everytime to search the new records,but it is unefficient, because indexSearcher wi

Re: Phrase Search not returning results

2007-08-23 Thread Spencer Tickner
Hi Grant, Thanks for the advice.. It turns out it was all my own stupidity,, I had commented out (for whatever reason) setPositionIncrement(0) on my synonym analyzer.. Cheers, Spence On 8/23/07, Grant Ingersoll <[EMAIL PROTECTED]> wrote: > I would suggest starting with: http://wiki.apache.org/l

Re: Phrase Search not returning results

2007-08-23 Thread Grant Ingersoll
I would suggest starting with: http://wiki.apache.org/lucene-java/ LuceneFAQ#head-3558e5121806fb4fce80fc022d889484a9248b71 especially the part on Luke. Luke will let you try out the various queries and show you what they look like before being submitted. Cheers, Grant On Aug 23, 2007, at

Phrase Search not returning results

2007-08-23 Thread Spencer Tickner
Hi List, Thanks in advance for the help. I'm creating a simple searching test based on Query Parser and from what I've read it should have no problems with a Phrase Search. However I can't seem to get any results back. I'm doing a simple index using the StandardAnalyzer. Output from the indexing

Re: Indexing time linear?

2007-08-23 Thread Erick Erickson
I'm pretty sure it's been relatively linear for me, but I haven't tracked it in detail. The obvious question is whether all of your docs are about the same size But you might look here for tips before you try extrapolating http://wiki.apache.org/lucene-java/ImproveIndexingSpeed Best Eric

Indexing time linear?

2007-08-23 Thread Barry Forrest
Hi list, I'm trying to estimate how long it will take to index 10 million documents. If I measure how long it takes to index say 10,000 documents, can I extrapolate? Will it take roughly 1000 times longer to do the whole set? Thanks Barry

RE: How to rename fields in an index

2007-08-23 Thread Jun.Chen
Got it. Thank you very much :) -Original Message- From: Andrzej Bialecki [mailto:[EMAIL PROTECTED] Sent: 2007年8月23日 3:09 下午好,Daniel To: java-user@lucene.apache.org Subject: Re: How to rename fields in an index [EMAIL PROTECTED] wrote: > Dear Andrzej Bialecki > > Can we change the field n

Re: How to rename fields in an index

2007-08-23 Thread Andrzej Bialecki
[EMAIL PROTECTED] wrote: Dear Andrzej Bialecki Can we change the field name in *.fnm directly by hand? Yes, but you need to be consistent about it, i.e. change it the same way for every segment that the index consists of. Also, fnm files are binary files, so you need to know the format (unle