Thanks so much for your responses, I have it figured out:
Query parser=new WildcardQuery(new Term(LINES, the*));
parser=parser.rewrite(IndexReader.open(fsDir));
and I was able to get my results highlighted for both WildCard and Fuzzy
searches.
Thanks for the responses.
Sincerely;
I am not seeing the problem. One small thing is that you don't need to
make another Reader...you can get the one from the IndexSearcher. But I
dont see why your are getting that error...that is the type of error you
would get if you were trying to use IndexReaders Protected constructor
outside
: why your are getting that error...that is the type of error you would get if
: you were trying to use IndexReaders Protected constructor outside the index
: package...but you are correctly using the static open call...
not quite...
: IndexReader ir = new IndexReader().open(fsDir);
Chris Hostetter wrote:
: why your are getting that error...that is the type of error you would get if
: you were trying to use IndexReaders Protected constructor outside the index
: package...but you are correctly using the static open call...
not quite...
: IndexReader ir = new
Thanks very much for your reply. I am having problems creating an
IndexReader object for this purpose. This is the relevant code for my
method:
public List wildSearch(File indexDir) throws Exception {
List searchResult = new ArrayList();
Directory
Thanks for the reply, and my apologies for the delay in my response. I
unfortunately have been quite busy trying to meet some deadlines at work.
Unfortunately this response was a bit vague. To clarify, Lucene allows the
user to return a result set when searching from an index with the users
First step:
query = query.rewrite()
Then pass the query to the Highlighter.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Dear Fellow Java and Lucene developers:
I am trying to display my results from doing a search of an xml document
(some quotes from shakespeare's Hamlet) using a WildCard and Fuzzy search,
and then I'm trying to highlight the keyword(s) in the results, but
unfortunately I am having problems. In
On Sonntag, 1. Juni 2008, syedfa wrote:
I am trying to display my results from doing a search of an xml document
(some quotes from shakespeare's Hamlet) using a WildCard and Fuzzy
search, and then I'm trying to highlight the keyword(s) in the results,
but unfortunately I am having problems.