Re: OR and AND queries case sensitive in q param?

2019-09-12 Thread Paras Lehana
Hey Shawn, Love your Solr articles! Just joined here. The edismax query parser supports lowercase operators, if the > lowercaseOperators parameter is set to true. I believe it defaults to > false. To add - Yes, *lowercaseOperators* defaults to *false* as per Solr Ref Guide 8.1

Re: OR and AND queries case sensitive in q param?

2019-09-12 Thread Shawn Heisey
On 9/12/2019 5:50 PM, Arnold Bronley wrote: in Solr 6.3, I was able to use OR and AND operators in case insensitive manner. The edismax query parser supports lowercase operators, if the lowercaseOperators parameter is set to true. I believe it defaults to false. Then if I pass 'rick OR mo

OR and AND queries case sensitive in q param?

2019-09-12 Thread Arnold Bronley
Hi, in Solr 6.3, I was able to use OR and AND operators in case insensitive manner. E.g. If I have two documents like following in my corpus: document 1: { id:1 author:rick } document 2: { id:2 author:morty } Then if I pass 'rick OR morty' to q param then I would get both documents back. I woul

Re: setNeedDocSet and queries cached in filter_cache

2013-11-18 Thread Dmitry Kan
Hi, do you see the evidence of "purging" via the evictions on the cache? Dmitry On Mon, Nov 18, 2013 at 3:35 PM, Daniel Rosher wrote: > Hi, > > We've written a few searchComponenets that make use > of rb.setNeedDocSet(true); the trouble with this is that the query gets > cached in the filter_

setNeedDocSet and queries cached in filter_cache

2013-11-18 Thread Daniel Rosher
Hi, We've written a few searchComponenets that make use of rb.setNeedDocSet(true); the trouble with this is that the query gets cached in the filter_cache, and we think are purging our more 'useful' docsets from the filter_cache. Has anyone else noticed this and has a useful remedy? We are curre

Re: AND Queries

2013-07-29 Thread Jack Krupansky
t: Re: AND Queries When I send that query: select?pf=url^10+title^8&fl=url,content,title&start=0&q=lang:en+AND+(cat+AND+dog+AND+pencil)&qf=content^5+url^8.0+title^6&wt=xml&debugQuery=on It is debugged as: +(+lang:en +(+(content:cat^5.0 | title:cat^6.0 | url:cat^8.0) +(co

Re: AND Queries

2013-07-29 Thread fbrisbart
Because you specified the search fields to use with 'qf' which overrides the default search field. Franck Brisbart Le lundi 29 juillet 2013 à 13:01 +0300, Furkan KAMACI a écrit : > When I send that query: > > select?pf=url^10+title^8&fl=url,content,title&start=0&q=lang:en+AND+(cat+AND+dog+AND+p

Re: AND Queries

2013-07-29 Thread Furkan KAMACI
When I send that query: select?pf=url^10+title^8&fl=url,content,title&start=0&q=lang:en+AND+(cat+AND+dog+AND+pencil)&qf=content^5+url^8.0+title^6&wt=xml&debugQuery=on It is debugged as: +(+lang:en +(+(content:cat^5.0 | title:cat^6.0 | url:cat^8.0) +(content:dog^5.0 | title:dog^6.0 | url:dog^8.0)

Re: AND Queries

2013-07-29 Thread fbrisbart
It's because when you don't specify any field, it's the default field which is used. So, lang:en AND url:book AND pencil AND cat is interpreted as : ang:en AND url:book AND :pencil AND :cat The default search field is defined in your schema.xml file (defaultSearchField) Franck Brisbart Le l

Re: AND Queries

2013-07-29 Thread Rafał Kuć
Hello! Try turning on debugQuery and see what I happening. From what I see you are searching the en term in lang field, the book term in url field and the pencil and cat terms in the default search field, but from your second query I see that you would like to find the last two terms in the url.

AND Queries

2013-07-29 Thread Furkan KAMACI
I am searching for a keyword as like that: lang:en AND url:book pencil cat It returns me results however none of them includes both book, pencil and cat keywords. How should I rewrite my query? I tried this: lang:en AND url:(book AND pencil AND cat) and looks like OK. However this not: lang:

Re: defaultOperator="AND" and queries with "("

2009-08-13 Thread Shalin Shekhar Mangar
On Thu, Aug 13, 2009 at 5:31 AM, Subbacharya, Madhu < madhu.subbacha...@corp.aol.com> wrote: > > Hello, > > We have Solr running with the defaultOperator set to "AND". Am not able > to get any results for queries like q=( Ferrari AND ( "599 GTB Fiorano" OR > "612 Scaglietti" OR F430 )) , whic

defaultOperator="AND" and queries with "("

2009-08-12 Thread Subbacharya, Madhu
Hello, We have Solr running with the defaultOperator set to "AND". Am not able to get any results for queries like q=( Ferrari AND ( "599 GTB Fiorano" OR "612 Scaglietti" OR F430 )) , which contain "(" for grouping. Anyone have any ideas for a workaround ? Thanks madhu

Re: MoreLikeThis/These and Queries

2009-01-19 Thread Clas Rydergren
Ah, I see. I have, more or less, only used the MoreLikeThis (single document) version, and the fq-filter is then applied to the (only) query that is made. Sorry. /Clas On Mon, Jan 19, 2009 at 4:42 PM, Andrew Ingram wrote: > Thanks, I'll try this. > > I tried using the /select version and the

Re: MoreLikeThis/These and Queries

2009-01-19 Thread Andrew Ingram
Thanks, I'll try this. I tried using the /select version and the problem was that fq applies only to the original query rather than the mlt results which are effectively separate queries. Clas Rydergren wrote: Hi, Even if you use the /solr/select-version of MLT, I guess that just adding th

Re: MoreLikeThis/These and Queries

2009-01-19 Thread Clas Rydergren
Hi, Even if you use the /solr/select-version of MLT, I guess that just adding the fq-parameter may work. If you would like to add the MLT request handler, add something like title,data 1 as a request handler plugin in your solrconfig.xml file. If you are running on Tom

Re: MoreLikeThis/These and Queries

2009-01-19 Thread Andrew Ingram
I think the problem might be that I'm using the standard handler with the mlt:true parameter. The MLT handler doesn't seem to be mentioned in my config file, do you know how I can enable it? Regards, Andrew Ingram Clas Rydergren wrote: Hi, Have you tried to add a filter directly to the /solr

Re: MoreLikeThis/These and Queries

2009-01-19 Thread Clas Rydergren
Hi, Have you tried to add a filter directly to the /solr/mlt?q=-request? Try to add "&fq=available:yes", and see if you can limit the MoreLikeThis-documents to documents that has "yes" in the "available"-field. I have had some success with this approach. /Clas, Frisim.com On Mon, Jan 19, 2009

MoreLikeThis/These and Queries

2009-01-19 Thread Andrew Ingram
Hi, I'm using Solr's MoreLikeThese functionality for a rudimentary related products system, but we need it to only return related products that match certain criteria. For example, we don't want to see any related products that are discontinued. I'm having difficulty figuring out if there's a