Re: labels search like google mail?

2006-11-23 Thread Kuassi Mensah
Marcelo (cced) has implemented Lucene within the Oracle database using the embeded Java VM. Such implementation might adress your requirements. Kuassi - blog http://db360.blogspot.com/ - book http://db360.blogspot.com/2006/08/oracle-database-programming-using-java_01.html On 11/23/06, Jin Yi

Re: labels search like google mail?

2006-11-23 Thread Jin Yiqing
You are right,. I think it's better to implement it using DB. But my project is build on lucene and i think it would be better if i could find a way to sovle this inside lucene. But as you have mentioned updating a lucene index is not a easy nor fast job. you have to rebuild the term table as it i

Re: Newbie Search Question

2006-11-23 Thread sirakov
Erick Erickson wrote: > > So why not assign a string to "text" and try it again? Or show us the code > where you expect the text variable to get a value. > > Erick > > I`m sorry that was a miss from my side. I've tried to put the simple code into SearchFiles, between Hits hits = searc

Re: Fwd: Hibernate Lucene trademark issues

2006-11-23 Thread Emmanuel Bernard
Hi Jin, I'll answer your email on the hibernate dev list. See you there :-) Jin Yiqing wrote: Hi,Emmanuel i think you did a very greate job! Since i am now working on a system that using lucene to implement a search engine, i would like to know some more details about Hinbernate Search. I

Re: Oracle and Lucene Integration

2006-11-23 Thread Marcelo Ochoa
Hi Vladimir: I don't think you can define rowid on 'insert' operations (ie, when a new entry in the table is created) - it's a 'hidden'/automatic field Oracle maintains itself... The rowid is available on the Data Cartridge API, see this output from tests: Insert. newval: 'chau' rowid: 'AAAP1EA

RE: Oracle and Lucene Integration

2006-11-23 Thread Vladimir Olenin
I don't think you can define rowid on 'insert' operations (ie, when a new entry in the table is created) - it's a 'hidden'/automatic field Oracle maintains itself... Vlad -Original Message- From: Marcelo Ochoa [mailto:[EMAIL PROTECTED] Sent: Thursday, November 23, 2006 7:23 AM To: java-u

Re: Oracle and Lucene Integration

2006-11-23 Thread Erick Erickson
I don't think you can have much, if any, influence on the docid that Lucene assigns. When you add a document, it's guaranteed to have an ID greater than any already in the index. I just think (but don't depend) on it being N + 1 where N is the largest docid already in the index. But here's the re

Re: Newbie Search Question

2006-11-23 Thread Erick Erickson
So why not assign a string to "text" and try it again? Or show us the code where you expect the text variable to get a value. Erick On 11/23/06, sirakov <[EMAIL PROTECTED]> wrote: thanky you for the info :) i've showed and tried to use the example, but I get following error message Query

Re: Reviving a dead index

2006-11-23 Thread Michael McCandless
Aleksander M. Stensby wrote: > works like a charm Michael! (only thing is that SegmentInfos / > SegmentInfo are final classe, (which I didnt know) so i was bugging > around to really find the classes:) heh. > > I was able to remove the broken segment. I must now get the MAX(id) from > the clean r

Re: Reviving a dead index

2006-11-23 Thread Aleksander M. Stensby
One last thing... can i be sure that the latest inserted documents in fact was inserted into that broken segment? Or are they placed randomly in the different segments? - Aleks On Thu, 23 Nov 2006 12:39:19 +0100, Michael McCandless <[EMAIL PROTECTED]> wrote: Aleksander M. Stensby wrote:

Re: Reviving a dead index

2006-11-23 Thread Aleksander M. Stensby
works like a charm Michael! (only thing is that SegmentInfos / SegmentInfo are final classe, (which I didnt know) so i was bugging around to really find the classes:) heh. I was able to remove the broken segment. I must now get the MAX(id) from the clean remaining segments, then just regene

Re: Oracle and Lucene Integration

2006-11-23 Thread Marcelo Ochoa
Otis: I am new to Lucene API and searching technologies :) doc.add(new Field("rowid", rowid, Field.Store.YES, Field.Index.UN_TOKENIZED)); Done!!. Also the Oracle ROWID format has a portion which can be used as the document id into the

Re: Reviving a dead index

2006-11-23 Thread Michael McCandless
Aleksander M. Stensby wrote: Hey, saw this old thread, and was just wondering if any of you solved the problem? Same has happened to me now. Couldn't really trace back to the origin of the problem, but the segments file references a segment that is obviously corrupt/not complete... I thought

Re: Reviving a dead index

2006-11-23 Thread Aleksander M. Stensby
Hey, saw this old thread, and was just wondering if any of you solved the problem? Same has happened to me now. Couldn't really trace back to the origin of the problem, but the segments file references a segment that is obviously corrupt/not complete... I thought i might remove the uncomple

Re: Newbie Search Question

2006-11-23 Thread sirakov
thanky you for the info :) i've showed and tried to use the example, but I get following error message Query: test Searching for: test Fields are: java.lang. NullPointerException at java.io. String reader. (Unknown Source) at org.apache.lucene.demo. SearchFiles.main (SearchFile

Re: labels search like google mail?

2006-11-23 Thread Chris Lamprecht
Sure.. using Lucene you could have a field called "labels" (or "tags", as everyone except google calls them), and just add a bunch of keyword field values to the field, one for each tag. The tricky part might be doing this quickly -- right when the user adds a tag, updating the lucene index -- i

Re: RAMDirectory vs MemoryIndex

2006-11-23 Thread jm
thanks. I'll try to get this working and see wether there is a perf difference during the weekend. On 11/23/06, Wolfgang Hoschek <[EMAIL PROTECTED]> wrote: Out of interest, I've checked an implementation of something like this into AnalyzerUtil SVN trunk: /** * Returns an analyzer wrappe