You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Venkatraman S <ve...@gmail.com> on 2007/09/18 14:37:34 UTC

Re: Search for Java Programming vs "Java Programming"

[ Kindly do try before posting in the forum or atleast try to look into the
wiki and other resources ]

nwayz...

For the Former:
use 'AND' and in the default query

For the latter :
use phrase queries - enclosing within double quotes should work.

On 9/18/07, Dilip.TS <di...@starmarksv.com> wrote:
>
>
> Hi,
>
> I have the following requirement:
> When the user searches for the keyword say Java Programming ,  the user
> should be shown the results satisfying the condition Java AND Programming.
> But when he types "Java Programming" (i.e within double quotes), the user
> should be shown with the results exactly matching Java Programming as a
> single word (similar to doing a search on google).
> The user should be shown with the proper results accordingly.
> Any help would be highly appreciated.
>
> Thanks in advance,
>
> Regards,
> Dilip TS
>
>


--