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

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

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
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 -Original Message- From: Henrik Ossipoff Hansen [mailto:h...@entertainment-trading.com] Sent:

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

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
To solve this issue I created a subclass of SortableIntField that overrides the getSortField() method as follows... @Override public SortField getSortField(SchemaField field, boolean reverse) { return new SortField(field.getName(), SortField.INT, reverse);

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