multiple filter query with seperate result sets (in one call)

2012-11-28 Thread ninaddesai82
Hi, 

I want to have multiple search at a time with grouped result.
i.e. 
If I am calling
http://localhost:8983/solr/file/select?q=*fq=category:wildfq=health_status:goodfq=animal:lion+OR+tiger

Then I need two results one for
 {category=wild and health_status=good and animal=lion} 
and second one is 
 {category=wild and health_status=good and animal=lion}

along with matched number of results. 

In other words, I want to pawn more than one search in a single query with
seperate search results (without mixing the results).

How can I do that ?

- n





--
View this message in context: 
http://lucene.472066.n3.nabble.com/multiple-filter-query-with-seperate-result-sets-in-one-call-tp4022912.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: multiple filter query with seperate result sets (in one call)

2012-11-28 Thread ninaddesai82
Thanks Erick for replying,

Well, I am actually trying to build a autosuggestion; However functionality
I need is little bit tricky.
So, just to give you an idea -

I have certain generic attributes (say category, city etc)
When use types, I want autosuggest to populate, but while doing that I want
only results to autopopulate which satisfies filter of my preselected
attributes (category and city which user had already selected).

So e.g. user selected category food, and city san fransisco
and if he tries to type lets say app

I might have 50 auto population results, out of which I want to search in
solr, how many returns results pertaining to above said attributes. (other
wise even if apple store is valid auto population, if its not present in
food and san fransisco, it wont be valid auto population).

So, I am trying to do background search in solr, where I could find validity
of auto population phrases results and only return valid ones. But to do
this, I will have to pawn 50 searches (solr) ,adn then logic to check how
many results are being returned. 
Instead I was hoping ... if I can do only one search for all those 50
criterias in solr and get grouped results, it will be awesome and optimized.

Any other idea you have in mind ?




--
View this message in context: 
http://lucene.472066.n3.nabble.com/multiple-filter-query-with-seperate-result-sets-in-one-call-tp4022912p4023184.html
Sent from the Solr - User mailing list archive at Nabble.com.


RE: Better (and valid) Spellcheck in combination with other parameters with at least one occurance

2012-07-08 Thread ninaddesai82
Thanks James for your reply.

I am using spell check collation options (except
spellcheck.maxCollationTries). 
However, Will spellcheck.maxCollationTries consider other parqameneters in
query or just all spellcheck words in q ?

Becuse in my case, if original query is --
solr/search/?q=hangryc=CA(all suggestion params)

then what i want is luscene suggestion to return is 
if q=hungry has hits with param c=CA then return suggestion hungry
if q=angry has hits with param c=CA then return suggestion angry

so, does maxCollationTries consider other parameters while collating the
results ?

- Ninad

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Better-and-valid-Spellcheck-in-combination-with-other-parameters-with-at-least-one-occurance-tp3993484p3993816.html
Sent from the Solr - User mailing list archive at Nabble.com.


Better (and valid) Spellcheck in combination with other parameters with at least one occurance

2012-07-06 Thread ninaddesai82
Hi,
I am trying to implement solr search with spellcheck. - 

My current seach works like this - I have some specific criteria for every
search query. i.e. If I am hitting search with q=restaurants , I also pass
another param say c=mumbai. So solr returns me restaurants in mumbai.

Now I want to implement spellcheck, but at the same time I also want to make
sure that whatever results my spellcheck is providing, are valid (means have
at least one occurance in combination with my other param as in c=city). I
am not able to decide how to achieve that.

i.e. 
If I pass say hangry to solr with spell check then spell check retuerns
few suggestions like hungry, angry
However I want to suggest user only those suggestions which have hitcounts
in my data with common field as in c=mumbai.
Otherwise what happens is - solr returns me some suggestion words hungry ,
angry and if they dont have ny records with combination of city, it returns
no result, which is bad user experience.

so ideally Solr should return me suggestion for only those words which have
at least 1 count for that suggestion with mumbai. 

I am currently firing 2 queries to luscene in order to achieve this 
Query one - spellcheck - this gives me word suggestns
Query two - with given words in spell check i run facet query to get
occurance counts to check which ones are valid.
But this seems like unnecessary over head (Query two - with facet takes too
long to respond as well). And I am trying to find more optimized way to do
this.

Can anyone suggest me how to do that ?

thanks,
ndesai

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Better-and-valid-Spellcheck-in-combination-with-other-parameters-with-at-least-one-occurance-tp3993484.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Better (and valid) Spellcheck in combination with other parameters with at least one occurance

2012-07-06 Thread ninaddesai82
anyone ??

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Better-and-valid-Spellcheck-in-combination-with-other-parameters-with-at-least-one-occurance-tp3993484p3993498.html
Sent from the Solr - User mailing list archive at Nabble.com.