Re: Displaying and highlighting results from a Wild Card and Fuzzy search using Lucene in Java

2008-06-18 Thread syedfa
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;

Re: Displaying and highlighting results from a Wild Card and Fuzzy search using Lucene in Java

2008-06-17 Thread Mark Miller
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

Re: Displaying and highlighting results from a Wild Card and Fuzzy search using Lucene in Java

2008-06-17 Thread Chris Hostetter
: 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);

Re: Displaying and highlighting results from a Wild Card and Fuzzy search using Lucene in Java

2008-06-17 Thread Mark Miller
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

Re: Displaying and highlighting results from a Wild Card and Fuzzy search using Lucene in Java

2008-06-16 Thread syedfa
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

Re: Displaying and highlighting results from a Wild Card and Fuzzy search using Lucene in Java

2008-06-15 Thread syedfa
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

Re: Displaying and highlighting results from a Wild Card and Fuzzy search using Lucene in Java

2008-06-15 Thread Mark Miller
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]

Displaying and highlighting results from a Wild Card and Fuzzy search using Lucene in Java

2008-06-01 Thread syedfa
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

Re: Displaying and highlighting results from a Wild Card and Fuzzy search using Lucene in Java

2008-06-01 Thread Daniel Naber
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.