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 Abhishek tiwari <ab...@gmail.com> on 2013/01/30 06:55:36 UTC

help to build query

want to execute queries like :
a)  cat in location1 , location2
b)  cat 1 and cat2 in location1 ,loc2 and  loc3

in our search .

our challenges :

1)  picking right keywords(category and locality) from query entered.
2)  its mapping to relevant entity

 How should i proceed for it .

we have localities and categories data indexed .

thanks in advance.

~abhishek

Re: help to build query

Posted by Abhishek tiwari <ab...@gmail.com>.
jack Thanks for your response..

we have a deal web application.. and having free text search in it . here
free text
 means you can type any thing in it..

we have deals of different categories..  and tagged at  different
 merchant  locations..
As per requirement  i have to do some tweaks in search ..

for example user can search deals like :

a)   cat1 in location1 , location 2.....( spa in malviya nagar, Ashok vihar
... here spa : cat1, location1: malviya nagar, location2:Ashok vihar
b) cat1 and cat2 in location1
c) cat1 in location1 and location2

Hope i am able to explain you better..




On Wed, Jan 30, 2013 at 9:06 PM, Jack Krupansky <ja...@basetechnology.com>wrote:

> Start by expressing the specific semantics of those queries in strict
> boolean form. I mean, what exactly do you mean by "in", and "location1,
> location 2", and "location1, loc2 and loc3? Is the latter an AND or an OR?
>
> Or at least fully express those two queries, unambiguously in plain
> English. There is too much ambiguity present to give you any solid
> direction.
>
> -- Jack Krupansky
>
> -----Original Message----- From: Abhishek tiwari
> Sent: Wednesday, January 30, 2013 12:55 AM
> To: solr-user@lucene.apache.org
> Subject: help to build query
>
>
> want to execute queries like :
> a)  cat in location1 , location2
> b)  cat 1 and cat2 in location1 ,loc2 and  loc3
>
> in our search .
>
> our challenges :
>
> 1)  picking right keywords(category and locality) from query entered.
> 2)  its mapping to relevant entity
>
> How should i proceed for it .
>
> we have localities and categories data indexed .
>
> thanks in advance.
>
> ~abhishek
>

Re: help to build query

Posted by Jack Krupansky <ja...@basetechnology.com>.
Start by expressing the specific semantics of those queries in strict 
boolean form. I mean, what exactly do you mean by "in", and "location1, 
location 2", and "location1, loc2 and loc3? Is the latter an AND or an OR?

Or at least fully express those two queries, unambiguously in plain English. 
There is too much ambiguity present to give you any solid direction.

-- Jack Krupansky

-----Original Message----- 
From: Abhishek tiwari
Sent: Wednesday, January 30, 2013 12:55 AM
To: solr-user@lucene.apache.org
Subject: help to build query

want to execute queries like :
a)  cat in location1 , location2
b)  cat 1 and cat2 in location1 ,loc2 and  loc3

in our search .

our challenges :

1)  picking right keywords(category and locality) from query entered.
2)  its mapping to relevant entity

How should i proceed for it .

we have localities and categories data indexed .

thanks in advance.

~abhishek