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
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
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
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
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
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
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
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
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:
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
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
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
>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
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:
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
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
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
17 matches
Mail list logo