How to disable cache for facet.query?

2020-08-08 Thread Wei
Hi, I am trying to disable filter cache for some filter queries as they contain unique ids and cause cache evictions. By adding {!cache=false} the fq is no longer stored in filter cache, however I have similar conditions in facet.query and using facet.query={!cache=false}(color:red AND id:XXX

Re: facet.query on text - recommended field type

2016-07-26 Thread Erik Hatcher
facet.query is really just a short-cut for numFound using that query standalone. How many facet.query’s are you issuing? And what is the QTime for all those queries when individually made like this: /select?q=&rows=0 If one of your queries is “slow” - you mention wildcards and com

facet.query on text - recommended field type

2016-07-26 Thread lochri
I am experiencing very slow query time when using multiple facet.query on large result sets (like 5 minutes). I don't know how to optimize this, since it is not completely clear to me how the facet.query works. Currently my facet queries use tokenized text fields and contain wildcards or eve

AW: ex(clude) facet.query ?

2015-03-03 Thread Clemens Wyss DEV
I didn't but I should have ;) Thx! -Ursprüngliche Nachricht- Von: Mikhail Khludnev [mailto:mkhlud...@griddynamics.com] Gesendet: Dienstag, 3. März 2015 14:48 An: solr-user Betreff: Re: ex(clude) facet.query ? you mean &facet.query={!key="from2" ex="till2"}

Re: ex(clude) facet.query ?

2015-03-03 Thread Mikhail Khludnev
you mean &facet.query={!key="from2" ex="till2"}facet15__d_i:[2.0 TO *] don;t you? On Tue, Mar 3, 2015 at 12:00 PM, Clemens Wyss DEV wrote: > [Solr 5.0] > Whereas in > > fq={!tag="facet15"}facet15__d_i:1.8 facet15__d_i:2.2 > &q=(*:*) &

ex(clude) facet.query ?

2015-03-03 Thread Clemens Wyss DEV
[Solr 5.0] Whereas in fq={!tag="facet15"}facet15__d_i:1.8 facet15__d_i:2.2 &q=(*:*) &facet=true &facet.mincount=1 &facet.field={!key="facet15" ex="facet15"}facet15__d_i "facet15" is not affected by the fq (as desired). This does not hold

Re: Multiple facet.query ignored

2014-11-21 Thread Erick Erickson
Whew! Thanks for closing this off. Best, Erick On Fri, Nov 21, 2014 at 9:11 AM, nbosecker wrote: > Good call - we are adding some ACL to the query going in, and using a Map to > store the original query values, if there are multiple of the same key, it's > only storing the last value. > > My bad

Re: Multiple facet.query ignored

2014-11-21 Thread nbosecker
Good call - we are adding some ACL to the query going in, and using a Map to store the original query values, if there are multiple of the same key, it's only storing the last value. My bad! Thanks for the hint, I wasn't even considering that issue. Best, Nancy -- View this message in context

Re: Multiple facet.query ignored

2014-11-20 Thread Erick Erickson
This is totally weird. What version of Solr? Because the strangest thing is that the facet.query clause is getting lost on the way _in_. When I tried this query (5x, I'll admit), at least the echo params at the top had both facet queries, even when the lastsaveddate was undefined! In fact

Multiple facet.query ignored

2014-11-20 Thread nbosecker
Hi, I'm having problems with queries that have multiple facet.query fields. Per the docs: [http://wiki.apache.org/solr/SimpleFacetParameters#Facet_Fields_and_Facet_Queries] http://localhost:8983/solr/select?q=video&rows=0&facet=true&facet.field=inStock&facet.query=price:[

Re: multiple facet.prefix for the same facet.field VS multiple facet.query

2013-02-21 Thread Bill Au
; > https://issues.apache.org/jira/browse/SOLR-1351 > > Wouldn't using multiple facet.query achieve the same result? I mean > something like: > > facet.query=lastName:A*&facet.query=lastName:B*&facet.query=lastName:C* > > > Bill > >

multiple facet.prefix for the same facet.field VS multiple facet.query

2013-02-21 Thread Bill Au
There have been requests for supporting multiple facet.prefix for the same facet.field. There is an open JIRA with a patch: https://issues.apache.org/jira/browse/SOLR-1351 Wouldn't using multiple facet.query achieve the same result? I mean something like: facet.query=lastName:A*&fa

RE: which analyzer is used for facet.query?

2013-02-15 Thread Kai Gülzau
OK, "problem" solved... I my tests I only reloaded the core "master" and queried the core "slave". So config changes on "slave" where not in place :-\ Sorry guys! Kai

Re: which analyzer is used for facet.query?

2013-02-13 Thread Tommaso Teofili
I agree that's definitely strange, I'll have a look at it. Tommaso 2013/2/12 Chris Hostetter > > : > So it seems that facet.query is using the analyzer of type index. > : > Is it a bug or is there another analyzer type for the facet query? > > That doesn&#x

RE: which analyzer is used for facet.query?

2013-02-12 Thread Chris Hostetter
: > So it seems that facet.query is using the analyzer of type index. : > Is it a bug or is there another analyzer type for the facet query? That doesn't really make any sense ... i don't know much about setting up UIMA (or what/when it logs things) but facet.query uses t

Tag facet.query excludes are broken when group.facet=true - SOLR 4.1 Bug?

2013-02-12 Thread Mark Beeby
I'm trying to use facets alongside grouping, however when I ask SOLR to compute grouped facet counts (group.facet=true, see http://wiki.apache.org/solr/FieldCollapsing) it no longer honours facet.query excludes, however without this (group.facet=false) the exclude works again withou

RE: which analyzer is used for facet.query?

2013-02-08 Thread Kai Gülzau
> So it seems that facet.query is using the analyzer of type index. > Is it a bug or is there another analyzer type for the facet query? Nobody? Should I file a bug? Kai -Original Message- From: Kai Gülzau [mailto:kguel...@novomind.com] Sent: Tuesday, February 05, 2013 2:31 PM To

which analyzer is used for facet.query?

2013-02-05 Thread Kai Gülzau
Hi all, which analyzer is used for the facet.query? This is my schema.xml: ... When doing a faceting search like: http://localhost:8983/solr/slave/select?q=*:*&fq=type:7&rows=0&wt=json&indent=true&facet=true&facet.query=albody_de:Kl

Multi-select with facet.query

2012-12-18 Thread tdog
facet queries doesn't seem to work. It will just return the facet count for the selected interval, as it would without the tag/ex options; ..&fq={!tag=dt}(price:[5 TO 10])&facet.query={!ex=dt}(price:[5 TO 10]) How can I do this? Thanks -- View this message in context: http://lucene.

Re: Using different queries for q and facet.query parameters

2012-09-26 Thread Kiran Jayakumar
Thank you very much Hoss, thats exactly what I was looking for ! :) On Wed, Sep 26, 2012 at 2:12 PM, Chris Hostetter wrote: > > I think you are missunderstanding the purpose of 'facet.query', it doesn't > change the base query used when faceting, it gives you a count o

Re: Using different queries for q and facet.query parameters

2012-09-26 Thread Chris Hostetter
I think you are missunderstanding the purpose of 'facet.query', it doesn't change the base query used when faceting, it gives you a count of documents that match an arbitrary query. what you are looking for is a way to "exclude" the fq used to drill down on the f

Using different queries for q and facet.query parameters

2012-09-26 Thread Kiran Jayakumar
o I do something like this: q={!edismax qf='field1 field2'}hello AND +Category:Books facet.query={!edismax qf='field1 field2'}hello I dont see the original facets. I only see the facet counts for Books. Am I missing something ? Any help is much appreciated. Thanks Kiran

Re: Function in facet.query like min,max

2012-01-17 Thread Eric Grobler
mpalah...@googlemail.com> > >> wrote: > >> > Hi Solr community, > >> > > >> > Is it possible to return the lowest, highest and average price of a > >> search > >> > result using facets? > >> > I tried something like: facet.qu

Re: Function in facet.query like min,max

2012-01-17 Thread Erick Erickson
ty, >> > >> > Is it possible to return the lowest, highest and average price of a >> search >> > result using facets? >> > I tried something like: facet.query={!max(price,0)} >> > Is it possible and what is the correct syntax? >> > >>

Re: Function in facet.query like min,max

2012-01-17 Thread Eric Grobler
2012 at 8:34 AM, Eric Grobler > wrote: > > Hi Solr community, > > > > Is it possible to return the lowest, highest and average price of a > search > > result using facets? > > I tried something like: facet.query={!max(price,0)} > > Is it possible and w

Re: Function in facet.query like min,max

2012-01-17 Thread Erick Erickson
something like: facet.query={!max(price,0)} > Is it possible and what is the correct syntax? > > q=htc android > facet=true > facet.query=price:[* TO 10] > facet.query=price:[11 TO 100] > facet.query=price:[101 TO *] > ???  facet.query={!max(price,0)} > > > Thanks & Regards > Ericz

Function in facet.query like min,max

2012-01-17 Thread Eric Grobler
Hi Solr community, Is it possible to return the lowest, highest and average price of a search result using facets? I tried something like: facet.query={!max(price,0)} Is it possible and what is the correct syntax? q=htc android facet=true facet.query=price:[* TO 10] facet.query=price:[11 TO 100

Re: Facet.query and collapsing

2010-11-28 Thread Markus Jelsma
e_id:(33 OR > 44)&facet=on&facet.field={!ex=sources}source_id&facet.query=source_id:(33 > OR 44)&collapse=on&collapse.field=hash_id > > I'd like my facet query to return the number of unique documents (based on > the hash_id field) that are associated to ei

Facet.query and collapsing

2010-11-25 Thread Jean-Sebastien Vachon
Hi All, I'm in a situation where I need to perform a facet on a query with field collapsing. Let's say the main query is something like this title:apple&fq={!tag=sources}source_id:(33 OR 44)&facet=on&facet.field={!ex=sources}source_id&facet.query=source_

facet.query with facet.date

2010-07-21 Thread ruphus
Hello, I need to create two date facets displaying counts of a particular fields values. With normal facets, this can be done with facet.query, but this parameter is not available to facet.date . Is this possbile? I'd really prefer to avoid performing two queries. Thanks William -- View

Re: facet.query and fq

2009-10-27 Thread David Giffin
_and_excluding_Filters > > J. > > 2009/10/27 David Giffin : >> Hi There, >> >> Is there a way to get facet.query= to ignore the fq= param? We want to >> do a query like this: >> >> select?fl=*&start=0&q=cool&fq=in_stock:true&facet=true&am

Re: facet.query and fq

2009-10-27 Thread Jérôme Etévé
Hi, you need to 'tag' your filter and then exclude it from the faceting. An example here: http://wiki.apache.org/solr/SimpleFacetParameters#Tagging_and_excluding_Filters J. 2009/10/27 David Giffin : > Hi There, > > Is there a way to get facet.query= to ignore the fq= param

facet.query and fq

2009-10-27 Thread David Giffin
Hi There, Is there a way to get facet.query= to ignore the fq= param? We want to do a query like this: select?fl=*&start=0&q=cool&fq=in_stock:true&facet=true&facet.query=in_stock:false&qt=dismax To understand the count of items not in stock, when someone has filtered ite

Re: All facet.fields for a given facet.query?

2007-06-21 Thread Chris Hostetter
: > facet.mincount is a way to tell solr not to bother giving you those 0 : > counts ... : : An aside: shouldn't that be the default? All of the people using : facets that I have seen always have to set facet.mincount=1 (or : facet.zeros=false) Hmmm... maybe, but it's a really easy option to tur

Re: All facet.fields for a given facet.query?

2007-06-21 Thread Chris Hostetter
: I get your point, but how to know where additional metadata is of value : if not : just trying? Currently I start with a generic approach to see what Man power. for simple schemas the brute force facet on everything appraoch can scale well .. but as soon as you start talking about having hunda

Re: All facet.fields for a given facet.query?

2007-06-21 Thread Thomas Traeger
: Faceting on manufacturers and categories first and than present the : corresponding facets might be used under some circumstances, but in my case : the category structure is quite deep, detailed and complex. So when : the user enters a query I like to say to him "Look, here are the : manufactu

Re: All facet.fields for a given facet.query?

2007-06-20 Thread Yonik Seeley
On 6/20/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: facet.mincount is a way to tell solr not to bother giving you those 0 counts ... An aside: shouldn't that be the default? All of the people using facets that I have seen always have to set facet.mincount=1 (or facet.zeros=false) -Yonik

Re: All facet.fields for a given facet.query?

2007-06-20 Thread Chris Hostetter
: I realized, that the facets are build out of the whole index, not the : subset : returned by the initial query. Therefore I have a large number of empty : facets which I simply ignore. In my case the QueryTime is somewhat facet.mincount is a way to tell solr not to bother giving you those 0 cou

Re: All facet.fields for a given facet.query?

2007-06-20 Thread Martin Grotzke
On Wed, 2007-06-20 at 12:49 -0700, Chris Hostetter wrote: > : > I solve this problem by having metadata stored in my index which tells > : > my custom request handler what fields to facet on for each category ... > : How do you define this metadata? > > this might be a good place to start, note th

Re: All facet.fields for a given facet.query?

2007-06-20 Thread Thomas Traeger
Chris Hostetter schrieb: : to make it clear, i agree that it doesn't make sense faceting on all : available fields, I only want faceting on those 300 attributes that are : stored together with the fields for full text searches. A : product/document has typically only 5-10 attributes. : : I like t

Re: All facet.fields for a given facet.query?

2007-06-20 Thread Chris Hostetter
: to make it clear, i agree that it doesn't make sense faceting on all : available fields, I only want faceting on those 300 attributes that are : stored together with the fields for full text searches. A : product/document has typically only 5-10 attributes. : : I like to decide at index time whic

Re: All facet.fields for a given facet.query?

2007-06-20 Thread Chris Hostetter
: > I solve this problem by having metadata stored in my index which tells : > my custom request handler what fields to facet on for each category ... : How do you define this metadata? this might be a good place to start, note that this message is almost two years old, and predates the opensourc

Re: All facet.fields for a given facet.query?

2007-06-20 Thread Martin Grotzke
On Wed, 2007-06-20 at 12:59 +0200, Thomas Traeger wrote: > Martin Grotzke schrieb: > > On Tue, 2007-06-19 at 19:16 +0200, Thomas Traeger wrote: [...] > >> I think it would be really nice, if I don't have to know which facets > >> fields are there at query time, instead just import attributes into

Re: All facet.fields for a given facet.query?

2007-06-20 Thread Thomas Traeger
Martin Grotzke schrieb: On Tue, 2007-06-19 at 19:16 +0200, Thomas Traeger wrote: Hi, I'm also just at that point where I think I need a wildcard facet.field parameter (or someone points out another solution for my problem...). Here is my situation: I have many products of different types

Re: All facet.fields for a given facet.query?

2007-06-20 Thread Thomas Traeger
first: sorry for the bad quoting, I found your message in the archive only... I have many products of different types with totally different attributes. There are currently more than 300 attributes I use dynamic fields to import the attributes into solr without having to define a specific fi

Re: All facet.fields for a given facet.query?

2007-06-19 Thread Martin Grotzke
On Tue, 2007-06-19 at 19:16 +0200, Thomas Traeger wrote: > Hi, > > I'm also just at that point where I think I need a wildcard facet.field > parameter (or someone points out another solution for my problem...). > Here is my situation: > > I have many products of different types with totally dif

Re: All facet.fields for a given facet.query?

2007-06-19 Thread Martin Grotzke
On Tue, 2007-06-19 at 11:09 -0700, Chris Hostetter wrote: > I solve this problem by having metadata stored in my index which tells > my custom request handler what fields to facet on for each category ... How do you define this metadata? Cheers, Martin > but i've also got several thousand catego

Re: All facet.fields for a given facet.query?

2007-06-19 Thread Chris Hostetter
: I have many products of different types with totally different : attributes. There are currently more than 300 attributes : I use dynamic fields to import the attributes into solr without having : to define a specific field for each attribute. Now when I make a query I : would like to get bac

Re: All facet.fields for a given facet.query?

2007-06-19 Thread Thomas Traeger
Hi, I'm also just at that point where I think I need a wildcard facet.field parameter (or someone points out another solution for my problem...). Here is my situation: I have many products of different types with totally different attributes. There are currently more than 300 attributes

Re: All facet.fields for a given facet.query?

2007-06-18 Thread Yonik Seeley
On 6/18/07, James Mead <[EMAIL PROTECTED]> wrote: Is it possible to request all facet.fields for a given facet.query instead of having to request specific facet.fields? e.g. is there a wildcard for facet.fields? Not currently. Can you elaborate on the problem you are trying to solve? A

All facet.fields for a given facet.query?

2007-06-18 Thread James Mead
Thanks for a great project. Is it possible to request all facet.fields for a given facet.query instead of having to request specific facet.fields? e.g. is there a wildcard for facet.fields? -- James. http://blog.floehopper.org

Re: Facet.query

2007-04-20 Thread Erik Hatcher
On Apr 19, 2007, at 10:41 PM, Ge, Yao ((Y.)) wrote: When mutiple facet queries are specified, are they booleaned as OR or AND? Neither, if you're referring to &facet.query=... facet.query's are all appended to the response, like this (in Ruby response format): { &

Re: Facet.query

2007-04-19 Thread James liu
From: Ge, Yao (Y.) Sent: Thursday, April 19, 2007 10:41 PM To: 'solr-user@lucene.apache.org' Subject: Facet.query When mutiple facet queries are specified, are they booleaned as OR or AND? -Yao -- regards jl

RE: Facet.query

2007-04-19 Thread Ge, Yao \(Y.\)
Never mind. I should have read the example (http://wiki.apache.org/solr/SimpleFacetParameters#head-1da3ab3995bc4abc dce8e0f04be7355ba19e9b2c) first. From: Ge, Yao (Y.) Sent: Thursday, April 19, 2007 10:41 PM To: 'solr-user@lucene.apache.org' Subject: F

Facet.query

2007-04-19 Thread Ge, Yao \(Y.\)
When mutiple facet queries are specified, are they booleaned as OR or AND? -Yao

Re: facet.query question

2007-02-01 Thread Erik Hatcher
I meant facet.query, not fq, in the example below. fq is a filter query, whereas filter.query is a, umm, filter.query. Erik On Feb 1, 2007, at 9:19 PM, Erik Hatcher wrote: On Feb 1, 2007, at 7:55 PM, Peter McPeterson wrote: Well, I think I figured it out. It can be used to

Re: facet.query question

2007-02-01 Thread Erik Hatcher
you mean by hard-coding them on a page though. You could have a configuration that specified the facet.query parameters that get sent, and that same configuration would be used in making the facet.query parameters as well as driving the display (mapping, perhaps). If you have some tho

Re: facet.query question

2007-02-01 Thread Peter McPeterson
them into an array and doing like "1980 - 1989 ("+array[0]+")", "1980 - 1989 ("+array[1]+")" and so forth) and I don't think its the best way. Thanks. Peter From: Erik Hatcher <[EMAIL PROTECTED]> Reply-To: solr-user@lucene.apache.org To: solr

RE: facet.query question

2007-02-01 Thread Chris Hostetter
token matches; but facet.query can be used for numeric ranges, prefix matches, wildcards, etc... : : Peter : : : >From: "Peter McPeterson" <[EMAIL PROTECTED]> : >Reply-To: solr-user@lucene.apache.org : >To: solr-user@lucene.apache.org : >Subject: facet.query question :

Re: facet.query question

2007-02-01 Thread Erik Hatcher
ential do you have with what Solr provides? Erik Peter From: "Peter McPeterson" <[EMAIL PROTECTED]> Reply-To: solr-user@lucene.apache.org To: solr-user@lucene.apache.org Subject: facet.query question Date: Thu, 01 Feb 2007 15:10:34 -0800 Hi all, I'm working wit

RE: facet.query question

2007-02-01 Thread Peter McPeterson
Well, I think I figured it out. It can be used to display count results of different facet queries. But is it all that it does? Peter From: "Peter McPeterson" <[EMAIL PROTECTED]> Reply-To: solr-user@lucene.apache.org To: solr-user@lucene.apache.org Subject: facet.query qu

facet.query question

2007-02-01 Thread Peter McPeterson
Hi all, I'm working with faceted search but I can't seem to get the 'facet.query' option. I already read the wiki but still don't understand exactly what it does. Could someone please explain me: - What does it do and how to use it - Why should I use it? - Why sho