Select multiple facets with OR instead of AND

2011-05-20 Thread Dhanushka Samarakoon
Hi All, I'm running the following query. http://localhost:8983/solr/select/?q=greenversion=2.2indent=onqt=dismax; fq=fKeyword:NITROGENfq=fKeyword:corn facet=onfacet.mincount=1facet.field=fKeyword What this returns me is a set of results which has both the keywords in fKeyword. Instead I need

Re: Select multiple facets with OR instead of AND

2011-05-20 Thread Dhanushka Samarakoon
That worked. Thanks :-) On Fri, May 20, 2011 at 2:53 PM, Tor Henning Ueland tor.henn...@gmail.comwrote: On Fri, May 20, 2011 at 6:52 PM, Dhanushka Samarakoon dhan...@gmail.com wrote: What this returns me is a set of results which has both the keywords in fKeyword. Instead I need all

Stemming issue on spell correction and auto complete

2010-04-21 Thread Dhanushka Samarakoon
Hi, I have some issues with stemming on spell corrections and auto completes. Given below is a sample record from my docs. doc field name=idK-82/field field name=GrantNumber22570/field field name=GrantTitleExtension IPM Coordination Program/field field name=FundingSponsorUS Department of

Drill down a solr result set by facets

2010-03-29 Thread Dhanushka Samarakoon
Hi, I'm trying to perform a search based on keywords and then reduce the result set based on facets that user selects. First query for a search would look like this.

Re: Drill down a solr result set by facets

2010-03-29 Thread Dhanushka Samarakoon
: DepartmentName:Chemistry+fSponsor:\US Cancer/Diabetic Research Institute\ The parser will split on whitespace Tommy Chheng Programmer and UC Irvine Graduate Student Twitter @tommychheng http://tommy.chheng.com On 3/29/10 8:49 AM, Dhanushka Samarakoon wrote: Hi, I'm trying to perform a search based

Re: Drill down a solr result set by facets

2010-03-29 Thread Dhanushka Samarakoon
to both the fDepartmentName and fSponsor. Hope this helps. Regards, Indika On 29 March 2010 21:19, Dhanushka Samarakoon dhan...@gmail.com wrote: Hi, I'm trying to perform a search based on keywords and then reduce the result set based on facets that user selects. First query

Faceting a text field

2010-03-15 Thread Dhanushka Samarakoon
Hi, I'm trying the create a facet on a field with full names in it. When I specified it like this facet=onfacet.field=InvestigatorName in the url I got the first and last names as separate fields in the facets. lst name=InvestigatorName int name=john11/int int name=daniel3/int int name=jame3/int

Re: Faceting a text field

2010-03-15 Thread Dhanushka Samarakoon
Still no luck. Is there anything else that I need to change? On Mon, Mar 15, 2010 at 2:11 PM, Ahmet Arslan iori...@yahoo.com wrote: I'm trying the create a facet on a field with full names in it. When I specified it like this facet=onfacet.field=InvestigatorName in the url I got the

Re: Faceting a text field

2010-03-15 Thread Dhanushka Samarakoon
URL - http://localhost:8983/solr/select/?q=fInvestigatorName:[*%20TO%20*]facet=truefacet.field=fInvestigatorNamefl=fInvestigatorName Result - response lst name=responseHeader int name=status0/int int name=QTime14/int lst name=params str name=facet.fieldfInvestigatorName/str str

Re: Faceting a text field

2010-03-15 Thread Dhanushka Samarakoon
That worked !!! Thanks a lot. I was following a tutorial from a blog and just copy-pasted the line to the schema.xml and and just changed the field names. I would have never figured it out if it wasn't for your help :-) Although I'm surprised why solr didn't gave me an error on that schema

Setting the return query fields

2010-03-02 Thread Dhanushka Samarakoon
Hi, I would like to solr to return to record from /exampledocs/hd.xml when I search for the value 6H500F0 (which is the ID field for the 2'nd record in that file). I know there is a setting that I should change to get this done, but I can't locate it. Field name ID is alread included in schema.xml

Re: Setting the return query fields

2010-03-02 Thread Dhanushka Samarakoon
Thanks for the reply. Is there a place in the config file where I can set it to explicitly search the fields I want? On Tue, Mar 2, 2010 at 3:17 PM, Ahmet Arslan iori...@yahoo.com wrote: Hi, I would like to solr to return to record from /exampledocs/hd.xml when I search for the value