Using solrconfig for json facet sorting

2019-04-11 Thread sagandhi
Hi, Is it possible to configure sorting on json.facet in solrconfig.xml just like for traditional facets? Thanks, Soham -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: [EXTERNAL] Re: Facet Sorting

2018-07-24 Thread Chris Hostetter
: Chris, I was trying the below method for sorting the faceted buckets but : am seeing that the function query query($q) applies only to the score : from “q” parameter. My solr request has a combination of q, “bq” and : “bf” and it looks like the function query query($q) is calculating the : s

Re: [EXTERNAL] Re: Facet Sorting

2018-07-23 Thread Satheesh . Akkinepally
Chris, I was trying the below method for sorting the faceted buckets but am seeing that the function query query($q) applies only to the score from “q” parameter. My solr request has a combination of q, “bq” and “bf” and it looks like the function query query($q) is calculating the scores only o

Re: [EXTERNAL] Re: Facet Sorting

2018-07-18 Thread Satheesh . Akkinepally
Thank You Chris for an immediate response. I am using json facets and my question was for json facets and using solr 7.2.1. Will try your approach. Basically I want to use an average of the scores than the sum of the scores and sort those buckets based on the average score. The scores am assumin

Re: Facet Sorting

2018-07-18 Thread Chris Hostetter
: If I want to plug in my own sorting for facets, what would be the best : approach. I know, out of the box, solr supports sort by facet count and : sort by alpha. I want to plug in my own sorting (say by relevancy). Is : there a way to do that? Where should I start with if I need to write a

Facet Sorting

2018-07-17 Thread Satheesh . Akkinepally
Hello all, If I want to plug in my own sorting for facets, what would be the best approach. I know, out of the box, solr supports sort by facet count and sort by alpha. I want to plug in my own sorting (say by relevancy). Is there a way to do that? Where should I start with if I need to write a

Re: Use payloads in facet sorting

2018-05-24 Thread Mikhail Khludnev
s for this query?“. > The keywords should be sorted by the summed score of each keyword in a doc. > > To do this, I’ve tried to use the JSON Facet API to sort by the sum of all > keyword payloads. But I couldn’t find a way to use the payload function > within the facet sorting. > &

Use payloads in facet sorting

2018-05-24 Thread Tobias Kässmann
t;Which are the most relevant keywords for this query?“. The keywords should be sorted by the summed score of each keyword in a doc. To do this, I’ve tried to use the JSON Facet API to sort by the sum of all keyword payloads. But I couldn’t find a way to use the payload function within the facet

Re: Facet sorting algorithm for index

2015-04-02 Thread Yonik Seeley
On Thu, Apr 2, 2015 at 9:44 AM, Yago Riveiro wrote: > Where can I found the source code used in index sorting? I need to ensure > that the external data has the same sorting that the facet result. If you step over the indexed terms of a field you get them in sorted order (hence for a single node

Re: Facet sorting algorithm for index

2015-04-02 Thread Yago Riveiro
The result is a custom responseWriter, I found a bug in my code that append de \ to “. The JSON response shows the data without the \. Where can I found the source code used in index sorting? I need to ensure that the external data has the same sorting that the facet result. — /Yago Rivei

Re: Facet sorting algorithm for index

2015-04-02 Thread Yonik Seeley
On Thu, Apr 2, 2015 at 6:36 AM, yriveiro wrote: > Hi, > > I have an external application that use the output of a facet to join other > dataset using the keys of the facet result. > > The facet query use index sort but in some point, my application crash > because the order of the keys "is not cor

Facet sorting algorithm for index

2015-04-02 Thread yriveiro
uot; has lower ord than character 8, if \" is " then this sort makes sense ... My question here is how index sort works and how I can replicate it in C++ - Best regards -- View this message in context: http://lucene.472066.n3.nabble.com/Facet-sorting-algorithm-for-index-tp4197174

RE: Facet sorting seems weird

2013-07-15 Thread Henrik Ossipoff Hansen
gards, Henrik Ossipoff -Original Message- From: Alexandre Rafalovitch [mailto:arafa...@gmail.com] Sent: 15. juli 2013 17:16 To: solr-user@lucene.apache.org Subject: Re: Facet sorting seems weird Hi Henrik, If I understand the question correctly (case-insensitive sorting of the facet v

RE: Facet sorting seems weird

2013-07-15 Thread Henrik Ossipoff Hansen
t: 15. juli 2013 17:08 To: solr-user@lucene.apache.org Subject: RE: Facet sorting seems weird Hi Henrik, We did something related to this that I'll share. I'm rather new to Solr so take this idea cautiously :-) Our requirement was to show exact values but have case-insensitive so

Re: Facet sorting seems weird

2013-07-15 Thread William Bell
Alex, You could submit a JIRA ticket, and add an option like facet.sort = insensitive, and f.<> syntax Then we all get the benefit of the new feature. On Mon, Jul 15, 2013 at 9:16 AM, Alexandre Rafalovitch wrote: > Hi Henrik, > > If I understand the question correctly (case-insensitive sortin

Re: Facet sorting seems weird

2013-07-15 Thread Alexandre Rafalovitch
Hi Henrik, If I understand the question correctly (case-insensitive sorting of the facet values), then this is the limitation of the current Facet component. You can see the full implementation at: https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/java/org/apache/solr/handler/compone

RE: Facet sorting seems weird

2013-07-15 Thread James Thomas
nal Message- From: David Quarterman [mailto:da...@corexe.com] Sent: 15. juli 2013 16:46 To: solr-user@lucene.apache.org Subject: RE: Facet sorting seems weird Hi Henrik, Try setting up a copyfield in your schema and set the copied field to use something like 'text_ws' which implements L

RE: Facet sorting seems weird

2013-07-15 Thread Henrik Ossipoff Hansen
t: 15. juli 2013 16:46 To: solr-user@lucene.apache.org Subject: RE: Facet sorting seems weird Hi Henrik, Try setting up a copyfield in your schema and set the copied field to use something like 'text_ws' which implements LowerCaseFilterFactory. Then sort on the copyfield. Regards, DQ

RE: Facet sorting seems weird

2013-07-15 Thread David Quarterman
com] Sent: 15 July 2013 15:08 To: solr-user@lucene.apache.org Subject: Facet sorting seems weird Hello, first time writing to the list. I am a developer for a company where we recently switched all of our search core from Sphinx to Solr with very great results. In general we've been very

Facet sorting seems weird

2013-07-15 Thread Henrik Ossipoff Hansen
Hello, first time writing to the list. I am a developer for a company where we recently switched all of our search core from Sphinx to Solr with very great results. In general we've been very happy with the switch, and everything seems to work just as we want it to. Today however we've run into

Re: Facet sorting

2011-04-17 Thread Mark Mandel
Aaahhh.. missed that. So if I'm using SolrJ, do I need to set that explicitly through set(); or can I use setFacetSort() somehow? ('cause I can't find an example anywhere, and it's not inherently obvious). http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/SolrQuery.html#setFacetSort(j

Re: Facet sorting

2011-04-17 Thread Yonik Seeley
On Mon, Apr 18, 2011 at 1:10 AM, Mark Mandel wrote: > Is it possible to sort some facets by Lex, and others by numeric value?' Yes, see http://wiki.apache.org/solr/SimpleFacetParameters#Parameters Example of per-field overrides: facet.field=foo facet.field=bar f.foo.facet.sort=count f.bar.face

Facet sorting

2011-04-17 Thread Mark Mandel
Quick question - Is it possible to sort some facets by Lex, and others by numeric value? >From everything I've seen, it's either all or none, with no in between. Was just curious if that was not the case. Getting around it by doing post-sorting with comparators, but thought I may not need that s

Re: Slow facet sorting - lex vs count

2010-08-26 Thread Eric Grobler
ric Grobler > wrote: > > Hi Solr experts, > > > > There is a huge difference doing facet sorting on lex vs count > > The strange thing is that count sorting is fast when setting a small > limit. > > I realize I can do sorting in the client, but I am just cur

Re: Slow facet sorting - lex vs count

2010-08-25 Thread Yonik Seeley
On Wed, Aug 25, 2010 at 7:22 AM, Eric Grobler wrote: > Hi Solr experts, > > There is a huge difference doing facet sorting on lex vs count > The strange thing is that count sorting is fast when setting a small limit. > I realize I can do sorting in the client, but I am just curi

Re: Slow facet sorting - lex vs count

2010-08-25 Thread Yonik Seeley
On Wed, Aug 25, 2010 at 2:50 PM, Yonik Seeley wrote: > On Wed, Aug 25, 2010 at 10:55 AM, Eric Grobler > wrote: >> Thanks for the technical explanation. >> I will in general try to use lex and sort by count in the client if there >> are not too many rows. > > I just developed a patch that may help

Re: Slow facet sorting - lex vs count

2010-08-25 Thread Yonik Seeley
On Wed, Aug 25, 2010 at 10:55 AM, Eric Grobler wrote: > Thanks for the technical explanation. > I will in general try to use lex and sort by count in the client if there > are not too many rows. I just developed a patch that may help this scenario: https://issues.apache.org/jira/browse/SOLR-2089

Re: Slow facet sorting - lex vs count

2010-08-25 Thread Eric Grobler
esides optimizations, we could also implement options to store all > values and eliminate the need to read the index to do the ord->string > conversions. > > -Yonik > http://lucenerevolution.org Lucene/Solr Conference, Boston Oct 7-8 > > > > Regards > > Eric > >

Re: Slow facet sorting - lex vs count

2010-08-25 Thread Yonik Seeley
->string conversions. -Yonik http://lucenerevolution.org Lucene/Solr Conference, Boston Oct 7-8 > Regards > Eric > > On Wed, Aug 25, 2010 at 3:28 PM, Yonik Seeley > wrote: >> >> On Wed, Aug 25, 2010 at 7:22 AM, Eric Grobler >> wrote: >> > There is

Re: Slow facet sorting - lex vs count

2010-08-25 Thread Eric Grobler
speed regresses linearly, 30ms for 10, 300ms for 1000 etc. Regards Eric On Wed, Aug 25, 2010 at 3:28 PM, Yonik Seeley wrote: > On Wed, Aug 25, 2010 at 7:22 AM, Eric Grobler > wrote: > > There is a huge difference doing facet sorting on lex vs count > > The strange thing is tha

Re: Slow facet sorting - lex vs count

2010-08-25 Thread Yonik Seeley
On Wed, Aug 25, 2010 at 7:22 AM, Eric Grobler wrote: > There is a huge difference doing facet sorting on lex vs count > The strange thing is that count sorting is fast when setting a small limit. > I realize I can do sorting in the client, but I am just curious why this is. There are

Slow facet sorting - lex vs count

2010-08-25 Thread Eric Grobler
Hi Solr experts, There is a huge difference doing facet sorting on lex vs count The strange thing is that count sorting is fast when setting a small limit. I realize I can do sorting in the client, but I am just curious why this is. FAST - 16ms facet.field=city f.city.facet.limit=5000

Re: Hierarchical Facet Sorting

2009-10-20 Thread Yonik Seeley
What version of Solr are you using? I just tried this with the latest 1.4-dev version, and it works fine. http://localhost:8983/solr/select?q=*:*&facet=true&facet.field=cat&facet.sort=true Note that facet.sort=true/false has been deprecated in Solr 1.4 http://wiki.apache.org/solr/SimpleFacetParame

Hierarchical Facet Sorting

2009-10-20 Thread Nasseam Elkarra
We have &facet.sort=true however our hierarchical fields are being sorted alphabetically instead of by count. Here is the field type and field definitions: omitNorms="true" positionIncrementGap="0" indexed="true" stored="false" delimiter="/"/> multiValued="true"/> Any help is much appreciat

Manual facet sorting - possible?

2009-08-26 Thread Matthew Painter
Hi, I am attempting to perform a faceted distributed search with manual sorting of the value of a facet. Is this something which is possible through a Solr query or would I be better off inserting a manual weighting field and sort by that? To clarify - I am performing a distributed search over

RE: facet sorting by index on sint fields

2009-08-04 Thread Simon Stanlake
:ysee...@gmail.com] On Behalf Of Yonik Seeley Sent: Tuesday, August 04, 2009 2:28 PM To: solr-user@lucene.apache.org Subject: Re: facet sorting by index on sint fields On Thu, Jul 30, 2009 at 10:28 PM, Simon Stanlake wrote: > Hi, > I have a field in my schema specified using > > > > Where

Re: facet sorting by index on sint fields

2009-08-04 Thread Yonik Seeley
On Tue, Aug 4, 2009 at 5:27 PM, Yonik Seeley wrote: >> Is this a current limitation of solr faceting or am I missing a >> configuration step somewhere? I couldn't find any notes in the docs about >> this. > > This is not the intention - seems like a bug somewhere.  Is it still > broken in trunk?

Re: facet sorting by index on sint fields

2009-08-04 Thread Yonik Seeley
On Thu, Jul 30, 2009 at 10:28 PM, Simon Stanlake wrote: > Hi, > I have a field in my schema specified using > > > > Where "sint" is specified as follows (the default from schema.xml) > > omitNorms="true"/> > > When I do a facet on this field using sort=index I always get the values back > in lex

RE: facet sorting by index on sint fields

2009-08-04 Thread Simon Stanlake
ct of this change, or why it is not like this by default I'd be very interested to hear. Thanks, Simon -Original Message- From: Simon Stanlake [mailto:sim...@tradebytes.com] Sent: Thursday, July 30, 2009 7:28 PM To: 'solr-user@lucene.apache.org' Subject: facet sorting by in

facet sorting by index on sint fields

2009-07-30 Thread Simon Stanlake
Hi, I have a field in my schema specified using Where "sint" is specified as follows (the default from schema.xml) When I do a facet on this field using sort=index I always get the values back in lexicographic order. Eg: adding this to a query string... facet=true&facet.field=wordCount&

Re: Facet sorting by boost functions

2009-07-26 Thread Michael Lugassy
apparently it does. what a great contriibution! got it to work with 1.4-dev. hopefully it will get into the stable release. On Sun, Jul 26, 2009 at 4:39 PM, Michael Lugassy wrote: > intresting. will that patch work in 1.4? > > On Sun, Jul 26, 2009 at 9:56 AM, Shalin Shekhar > Mangar wrote: >> On S

Re: Facet sorting by boost functions

2009-07-26 Thread Michael Lugassy
intresting. will that patch work in 1.4? On Sun, Jul 26, 2009 at 9:56 AM, Shalin Shekhar Mangar wrote: > On Sun, Jul 26, 2009 at 3:51 AM, Michael Lugassy wrote: > >> I'm using something along ?q=_val_:"product(field1,0.5)" and was >> wondering whether I could facet with category_id so that I get

Re: Facet sorting by boost functions

2009-07-25 Thread Shalin Shekhar Mangar
On Sun, Jul 26, 2009 at 3:51 AM, Michael Lugassy wrote: > I'm using something along ?q=_val_:"product(field1,0.5)" and was > wondering whether I could facet with category_id so that I get the > single best document (product) for each category_id (not intrested in > more than 5 of the best product

Facet sorting by boost functions

2009-07-25 Thread Michael Lugassy
I'm using something along ?q=_val_:"product(field1,0.5)" and was wondering whether I could facet with category_id so that I get the single best document (product) for each category_id (not intrested in more than 5 of the best products in each of the highest-boosted category). Thanks!