Rahul
Looks like you've got the args mixed up in your qp calls. I think it should be:
QueryParser qp = new QueryParser("keywords",analyzer);
qp.setLowercaseWildcardTerms(false);
Query query = qp.parse(line);
--
Ian.
On 20 Jul 2005 14:06:32 -, Rahul D Thakare
<[EMAIL PROTECTED]> wrote
Erik/Ian
I tried using query.parse(String) did't return any result
also my query.toString() returns mainboard:keywords if i give the keyword as
mainboard. pls see the changed code again.
PerFieldAnalyzerWrapper analyzer = new PerFieldAnalyzerWrapper( new
StandardAnalyzer() );
analyze
On Jul 20, 2005, at 1:22 AM, Rahul D Thakare wrote:
Hi Ian,
Yes, I did implement Eric's suggestion last week, but couldn't help.
Also, just to note it I did mention the parse(String) method in
the e-mail referenced below! :)
Erik
I am using a demo program from Lucene.jar to
On Jul 20, 2005, at 1:22 AM, Rahul D Thakare wrote:
/* QueryParser qp = new QueryParser(line,analyzer);
qp.setLowercaseWildcardTerms(false);
Query query = qp.parse(line, "keywords", analyzer);
*/
Query query = QueryParser.parse(line, "keywords", analyzer);
You've been bitten, as many othe
What does query.toString() show in each case? I still think you
should try lowercasing everything, if only to see if it helps. If it
does you could either keep it or figure out what you need to do.
--
Ian.
On 20 Jul 2005 05:22:29 -, Rahul D Thakare
<[EMAIL PROTECTED]> wrote:
>
>
>
>
Hi Ian,
Yes, I did implement Eric's suggestion last week, but couldn't help.
I am using a demo program from Lucene.jar to test this, let me put a code here.
doc.add(Field.Keyword("keywords", "MAIN BOARD"));
while indexing
and for retrieving
PerFieldAnalyzerWrapper analyzer = new PerF
Have you tried Erik's suggestion from last week?
http://mail-archives.apache.org/mod_mbox/lucene-java-user/200507.mbox/[EMAIL
PROTECTED]
There is certainly some case confusion in your examples there.
Personally, I tend to just lowercase all text on indexing and
searching.
--
Ian.
On 19 Jul 200