Re: Hierarchical classified documents

2006-11-26 Thread karl wettin
25 nov 2006 kl. 17.26 skrev Robert Koberg: What I do is add a 'path' field with the xpath to the node. Then you first narrow your search by finding documents with paths like: /node[1]/node[3]* You use a wildcard query? That can turn out to be very expensive if you have a thousand and

Re: RAMDirectory vs MemoryIndex

2006-11-26 Thread jm
I tested this. I use a single static analyzer for all my documents, and the caching analyzer was not working properly. I had to add a method to clear the cache each time a new document was to be indexed, and then it worked as expected. I have never looked into lucenes inner working so I am not

Re: Error in QueryTermExtractor.getTermsFromBooleanQuery

2006-11-26 Thread markharw00d
Nope, not seen that one. Looks like the reference to no such field is in the Java instance data sense, not the Lucene document sense. Class versioning issues somewhere? That method takes a parameter called prohibited which is the name of the field reported in the error. Is the word prohibited

How to set query time scoring

2006-11-26 Thread Sajid Khan
I have already set some score at the index time. And now i want to set some score at the query time. But i am not getting any idea of how to set the score at query time in lucene. Has anybody an idea how to do this? Regards Sajid -- View this message in context:

Re: How to set query time scoring

2006-11-26 Thread Bhavin Pandya
Hi sajid, As you already boost data at indexing time... You can boost query at search time... eg. If you are firing boolean query and phrasequery...you might need to boost phrasequery PhraseQuery pq = new PhraseQuery(); pq.setBoost(2.0f); Thanks. Bhavin pandya - Original Message

Re: Newbie Search Question

2006-11-26 Thread sirakov
Erick Erickson wrote: And how are you storing your date? Field.Store.YES? NO? COMPRESSED? I think, here is my problem...I have found this in the FileDocument.java: doc.add(new Field(contents, new FileReader(f))); Field.Store.YES is missing, but when I try to put this argument, i become

Database searching using Lucene....

2006-11-26 Thread Inderjeet Kalra
Hi, I need some inputs on the database searching using lucene. Lucene directly supports the document searching but I am unable to find out the easy and the fastest way for database searching. Which option would be better - SPs or Lucene search engine in terms of implementation, performance