You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by sandyg <ga...@gmail.com> on 2008/06/13 16:01:37 UTC
Multi keyword match
Hi guys ,
I need ur help.
I am working with lucene engine its very good.
but I had some problem.
like my document contains feilds like id , name , desg
i need to search " id=1 and name=sandy and desg = manager " where i need
documents which satisfies three conditions
please help me if you have idea
--
View this message in context: http://www.nabble.com/Multi-keyword-match-tp17824134p17824134.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Multi keyword match
Posted by sandyg <ga...@gmail.com>.
Hi,
Guys please ignore this message i found the solution .
Just i have to search "sandy" and "professional"
sorry for misuse the mailing service .
sandyg wrote:
>
> Hi,
> Thnx for the help.But its not fullfilled my requirement.
> for example my record is like id=121 ,name=sandy and
> desg=professional.
> Actually here default keyword is id
> If i do search like id:"121" and name:"sandy" it
> gives the result
> But when i search name:"sandy" and desg:"professional" it gives no
> result.
>
> So it is searching based on default feild only not on remaining
> conditions.
> Please if u find any solution for this forward it to me.
>
>
>
> Erick Erickson wrote:
>>
>> Have you looked at:
>>
>> http://lucene.apache.org/java/docs/queryparsersyntax.html
>>
>> ??
>>
>> Best
>> Erick
>>
>> On Fri, Jun 13, 2008 at 10:01 AM, sandyg <ga...@gmail.com>
>> wrote:
>>
>>>
>>> Hi guys ,
>>> I need ur help.
>>> I am working with lucene engine its very good.
>>> but I had some problem.
>>> like my document contains feilds like id , name , desg
>>> i need to search " id=1 and name=sandy and desg = manager " where i
>>> need
>>> documents which satisfies three conditions
>>> please help me if you have idea
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Multi-keyword-match-tp17824134p17824134.html
>>> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>>
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Multi-keyword-match-tp17824134p17859694.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Multi keyword match
Posted by sandyg <ga...@gmail.com>.
Hi,
Thnx for the help.But its not fullfilled my requirement.
for example my record is like id=121 ,name=sandy and desg=professional.
Actually here default keyword is id
If i do search like id:"121" and name:"sandy" it
gives the result
But when i search name:"sandy" and desg:"professional" it gives no
result.
So it is searching based on default feild only not on remaining conditions.
Please if u find any solution for this forward it to me.
Erick Erickson wrote:
>
> Have you looked at:
>
> http://lucene.apache.org/java/docs/queryparsersyntax.html
>
> ??
>
> Best
> Erick
>
> On Fri, Jun 13, 2008 at 10:01 AM, sandyg <ga...@gmail.com> wrote:
>
>>
>> Hi guys ,
>> I need ur help.
>> I am working with lucene engine its very good.
>> but I had some problem.
>> like my document contains feilds like id , name , desg
>> i need to search " id=1 and name=sandy and desg = manager " where i
>> need
>> documents which satisfies three conditions
>> please help me if you have idea
>> --
>> View this message in context:
>> http://www.nabble.com/Multi-keyword-match-tp17824134p17824134.html
>> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Multi-keyword-match-tp17824134p17859500.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Multi keyword match
Posted by Erick Erickson <er...@gmail.com>.
Have you looked at:
http://lucene.apache.org/java/docs/queryparsersyntax.html
??
Best
Erick
On Fri, Jun 13, 2008 at 10:01 AM, sandyg <ga...@gmail.com> wrote:
>
> Hi guys ,
> I need ur help.
> I am working with lucene engine its very good.
> but I had some problem.
> like my document contains feilds like id , name , desg
> i need to search " id=1 and name=sandy and desg = manager " where i need
> documents which satisfies three conditions
> please help me if you have idea
> --
> View this message in context:
> http://www.nabble.com/Multi-keyword-match-tp17824134p17824134.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>