Re: Error running Lucene in Action code

2007-12-06 Thread syedfa
Thanks very much for your reply. I commented out the line: attributeMap.clear(); in the startElement() method, and the code ran! Thanks for your prompt reply, and my apologies for the delay in responding. All the best. Fayyaz Michael McCandless-2 wrote: > > > I think you need to initial

Fwd: Can I search in realtime?

2007-12-06 Thread 游泳池的鱼
Hi, it's my first time to use lucene maillist. I have problem that when I add a document with IndexWriter , it searchable for the IndexSearcher instance which is creat before the document flush to index? if lucene can not do this,any suggest to solve this problem? Regards, cooc

Re: Boost One Term Query

2007-12-06 Thread Erick Erickson
I don't believe you can compare scores across queries in any meaningful way. This sounds a lot like you're trying to solve some problem and have decided that boosting and comparing scores across queries is the answer. in other words, the XY problem. Perhaps if you explained what you're trying to

RE: Indexing XML documents (Urdu)

2007-12-06 Thread Seneviratne_Yasoja
Hi Liaqat, I'd rather keep the email-thread on the lucene user list. The code I used is below, the thing to do is be careful when reading UTF-8 text so you don't garble it. import org.xml.sax.*; import org.xml.sax.helpers.DefaultHandler; import org.apache.lucene.document.*; import org.apache.luc

Custom SynonymMap

2007-12-06 Thread java_user_
Is there a way to add synonyms to the SynonymMap map? The HashMap that holds all the words is not visible (private) so extending it will not work. Has anyone added their own custom vocabulary? -- View this message in context: http://www.nabble.com/Custom-SynonymMap-tf4958585.html#a14201041 Sen

Conversion from Lucene 1.4.3 API to 2.2.0 API.

2007-12-06 Thread ts01
Hi, With Lucene 1.4.3, we had used this constructor for Field. What is its equivalent in Lucene 2.2.0? /** Constructs a String-valued Field that is tokenized and indexed, and is stored in the index, for return with hits. The tokens are generated from the reader */ public static final

Re: Boost One Term Query

2007-12-06 Thread java_user_
I was hoping to boost the entire query to give the query more weight compared to other queries. Instead of boosting my entire query, I may just multiply the resulting score by the weight (or something like that). Yonik Seeley wrote: > > On Dec 6, 2007 2:31 PM, java_user_ <[EMAIL PROTECTED]> w

Re: Boost One Term Query

2007-12-06 Thread Yonik Seeley
On Dec 6, 2007 2:31 PM, java_user_ <[EMAIL PROTECTED]> wrote: > Thanks for the response Hoss. > > The score I receive is from the Explaination object. The score stays the > same regardless of how I boost the single term. > > The score of the query: > apple > > Is the same as the score of the query

RE: best practices for reloading an index for a searcher

2007-12-06 Thread Beyer,Nathan
That does help, thank you. Does closing a reader, writer or searcher close the underlying Directory? I've been operating under the assumption that it does not and that I should be sharing the Directory instance as much as possible. -Nathan -Original Message- From: Erick Erickson [mailto:

Re: Boost One Term Query

2007-12-06 Thread java_user_
Thanks for the response Hoss. The score I receive is from the Explaination object. The score stays the same regardless of how I boost the single term. The score of the query: apple Is the same as the score of the query: apple^3 I am surprised by the result of the test. Would you expect "appl

Re: best practices for reloading an index for a searcher

2007-12-06 Thread Erick Erickson
If by reload you mean closing and opening the reader, then yes. You need to do this in order to see the changes since the *last* time you opened the reader. Think of it as the reader taking a snapshot of the index and using that for its lifetime. Be aware that opening a reader (and running the fi

best practices for reloading an index for a searcher

2007-12-06 Thread Beyer,Nathan
I did some searching on the lucene site and wiki, but didn't quite find what I was looking for in regards to a basic approach to how and when to reload index data. I have a long running process that will be continually indexing and concurrently searching the same index and I'm looking for a basic a

Re: Errors while running LIA code.

2007-12-06 Thread Doron Cohen
>1) Downloaded http://www.ehatchersolutions.com/downloads/ > LuceneInAction.zip - sorry, lucenebook.com is broken at the moment :( This one works too - http://www.manning.com/hatcher2/ --> Downloads --> Source Code - To unsu

Re: Errors while running LIA code.

2007-12-06 Thread Erik Hatcher
Wow, sure enough there is a bug in LIA's SAXXMLHandler! After all these years! We did not have it registered to run by default in the examples - it uses the Digester implementation instead of SAX. Mike's suggested fix works fine for me, changing the attributeMap declaration to be this:

Re: Errors while running LIA code.

2007-12-06 Thread Liaqat Ali
Michael McCandless wrote: See this thread for one suggestion: http://www.gossamer-threads.com/lists/lucene/java-user/55465 Mike "Liaqat Ali" <[EMAIL PROTECTED]> wrote: Hi I am trying to run a code from Lucene In Action, but it generate some errors.There is one one warning at compilat

Re: Errors while running LIA code.

2007-12-06 Thread Michael McCandless
See this thread for one suggestion: http://www.gossamer-threads.com/lists/lucene/java-user/55465 Mike "Liaqat Ali" <[EMAIL PROTECTED]> wrote: > Hi > > I am trying to run a code from Lucene In Action, but it generate some > errors.There is one one warning at compilation time and the errors

Errors while running LIA code.

2007-12-06 Thread Liaqat Ali
Hi I am trying to run a code from Lucene In Action, but it generate some errors.There is one one warning at compilation time and the errors generate at run time. Given below the code and errors. Kindly give me some clue. thanks... *_Code:_* ///package lia.handlingtypes.xml; import lia.handl