Dear Karsten:
Sorry for the multiple posts, but I have made some progress. I think in
order to search multiple fields, I should be using the
MultipleFieldsQueryParser class, and simply pass a String array containing
the fields I wish to search over. My follow-up question to you is this:
How do
Hi Karsten:
I have another follow-up question for you. Once I create the index the way
you suggested, how would I modify my code to search it?
At present, I have the following code:
Analyzer analyser = new StandardAnalyzer();
Query parser=new QueryParser("LINES", analyser).pa
Thanks Karsten for your reply. I will implement your solution tonight,
however I did have a quick follow up question. I understand how you are
implementing the solution for the "SCENE-COMMENTARY" tag, however because at
present I am working with the "LINES" tag, shouldn't I continue using that
i
Hi Fayyaz,
again, this is about SAX-Handler not about lucene.
My understanding of what you want:
1. one lucene document for each SPEECH-Element (already implemented)
2. one lucene document for each SCENE-COMMENTARY-Element (not implemented
yet).
correct?
If yes, you can write
i
I think I understand what you are saying, but I was hoping you could clarify
a little further. in the start-element method, I have the following:
if(qName.equals("SPEECH")){
doc=new Document();
}
are you saying that I should add an ident
Hi Fayyaz,
>From my point of view, this is not a lucene question.
If I understand your SAX-Handler correctly, you start a document with each
"speech"-start-Tag and you end this document with each "lines"-close-Tag.
So if you know that the SCENE-COMMENTARY Elements and the speech elements
are dis