Natarajan.T wrote:
You don't have to handle it, lucene does it. If you don't like how lucene handles it then you may extendOk you are correct ...
Suppose if I type "what java" then how can I handle...
the functionality.
If you use the same analyzer for indexing and searching then you will find the results with both search strings:
"what java" and "what is java".
At least I obtain them in both cases. That's right you will obtain "what java" if you search for "what is java", in my case is acceptable.
If it is not acceptable in your project, I suggest to try to create a new Analyzer.
I whish you luck,
Sergiu
Regards, Natarajan.
-----Original Message-----
From: sergiu gordea [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 7:38 PM
To: Lucene Users List
Subject: Re: Search PharseQuery
Natarajan.T wrote:
Hi,
Thanks for your response.....
For example search keyword is like below...
Language "what is java"
Token 1: language Token 2: what is java(like google)
Regards, Natarajan.
Lucene works exaclty as you describe above with a simple correction ...
The analyzer has a list of stopped keywords, and I bet "is" is one of
them for your analyzer. I don't mind right now about this, so I won't dig to find a solution for
this problem, but the resolution should be searched around Analyzer classes. All the best,
Sergiu
the
-----Original Message-----
From: Aad Nales [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 5:19 PM
To: 'Lucene Users List'
Subject: RE: Search PharseQuery
Hi,
Not sure if this is what you need but I created a lastname filter which
in Dutch means potential double last names like:"van der Vaart". In
order to process these I created a finite state machine that queried
these last names. Since I only needed the filter on 'index' time and I
never use it for querieying, this may not be what you are looking for.
It should be simple to index 'what is java' as a single token and to
search for that same token. However, you will need to create a list of
accepted 'tokens'. If this is what you need let me know, I will make
code available...
cheers, Aad Nales
-----Original Message-----
From: Honey George [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 September, 2004 13:39
To: Lucene Users List
Subject: Re: Search PharseQuery
--- "Natarajan.T" <[EMAIL PROTECTED]>
wrote:
Hi All,
How do I implement PharseQuery API?
What exactly you mean by implement? Are you trying to extend the current behavior or only trying find out the usage? Thanks, George
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]