Re: custom sorting of search result

2014-11-04 Thread Alexandre Rafalovitch
Latest versions of Solr have collapsing and expanding plugins, reranking plugins and post-filters. Some combinations of these seem like it might be relevant. And, of course, there is always carrot2 clustering. Regards, Alex. Personal: http://www.outerthoughts.com/ and @arafalov Solr resources

custom sorting of search result

2014-11-03 Thread alxsss
Hello, We need to order solr search results according to specific rules. I will explain with an example. Let say solr returns 1000 results for query sport. These results must be divided into three buckets according to rules that come from database. Then one doc must be chosen from each

Boost function for custom sorting.

2014-10-01 Thread sai suman
Hi, I have some records which include a source_id field which is an integer and a datetime field. I want the records to be ordered such that the adjacent records should not have the same source ids. It should perform some sort of round robin on the records with the source_id as kay and they

Custom sorting on facets

2013-12-31 Thread Gupta, Abhinav
Hi, I am using facets for suggestions. By default facet sort is based only on index order and count. Now, in that I have a requirement that based on a value in solr doc ;some suggestions must be at top and then other. Example : doc iddoc1/id nameProductInstancename/

Autosuggest - Custom sorting

2013-10-01 Thread SolrLover
://lucene.472066.n3.nabble.com/Autosuggest-Custom-sorting-tp4092980.html Sent from the Solr - User mailing list archive at Nabble.com.

Custom sorting of Solr Results

2013-04-30 Thread Sandeep Mestry
Dear Experts, I have a requirement for the exact matches and applying alphabetical sorting thereafter. To illustrate, the results should be sorted in exact matches and all later alphabetical. So, if there are 5 documents as below Doc1 title: trees Doc 2 title: plum trees Doc 3

Re: How to do custom sorting in Solr?

2012-06-11 Thread Afroz Ahmad
You may want to look at http://sujitpal.blogspot.com/2011/05/custom-sorting-in-solr-using-external.html. While it is not the same requirement, this should give you an idea of how to do custom sorting. Thanks Afroz On Sun, Jun 10, 2012 at 4:43 PM, roz dev rozde...@gmail.com wrote: Yes

Re: How to do custom sorting in Solr?

2012-06-10 Thread roz dev
Product # 4 Price: Markdown, Sort Order:71 . ... Product # 70 Price: Regular, Sort Order:70 My query is like this: q=*:*fq=category:Books What are the options to implement custom sorting and how do I do it? - Define a Custom Function query? - Define a Custom

Re: How to do custom sorting in Solr?

2012-06-10 Thread Erick Erickson
What are the options to implement custom sorting and how do I do it?    - Define a Custom Function query?    - Define a Custom Comparator? Or,    - Define a Custom Collector? Please let me know the best way to go about it and any pointers to customize Solr 4. Thanks Saroj

Re: How to do custom sorting in Solr?

2012-06-10 Thread roz dev
. ... Product # 70 Price: Regular, Sort Order:70 My query is like this: q=*:*fq=category:Books What are the options to implement custom sorting and how do I do it? - Define a Custom Function query? - Define a Custom Comparator? Or, - Define a Custom Collector

Re: How to do custom sorting in Solr?

2012-06-10 Thread Erick Erickson
. ... Product # 70   Price: Regular, Sort Order:70 My query is like this: q=*:*fq=category:Books What are the options to implement custom sorting and how do I do it?    - Define a Custom Function query?    - Define a Custom Comparator? Or,    - Define a Custom Collector

Re: How to do custom sorting in Solr?

2012-06-10 Thread roz dev
. ... Product # 70 Price: Regular, Sort Order:70 My query is like this: q=*:*fq=category:Books What are the options to implement custom sorting and how do I do it? - Define a Custom Function query? - Define a Custom Comparator? Or, - Define

Custom sorting doesn't work properly.

2011-06-15 Thread Eugene Stherbin
Hello everybody, I have problem with a custom sorting in solr . This problem(incorrect sorting order) happened only when used 2 or more shards in solr configuration. I did next: Extends from TrieIntField just for override comparator *public class OperatingStatusFieldType extends

Custom sorting based on external (database) data

2011-05-05 Thread Sujit Pal
Hi, Sorry for the possible double post, I wrote this up but had the incorrect sender address, so I am guessing that my previous one is going to be rejected by the list moderation daemon. I am trying to figure out options for the following problem. I am on Solr 1.4.1 (Lucene 2.9.1). I have

Re: Custom sorting based on external (database) data

2011-05-05 Thread Ahmet Arslan
--- On Thu, 5/5/11, Sujit Pal sujit@comcast.net wrote: From: Sujit Pal sujit@comcast.net Subject: Custom sorting based on external (database) data To: solr-user solr-user@lucene.apache.org Date: Thursday, May 5, 2011, 11:03 PM Hi, Sorry for the possible double post, I wrote

Re: Custom sorting based on external (database) data

2011-05-05 Thread Sujit Pal
/solr-external-scoring/ On Thu, 2011-05-05 at 13:12 -0700, Ahmet Arslan wrote: --- On Thu, 5/5/11, Sujit Pal sujit@comcast.net wrote: From: Sujit Pal sujit@comcast.net Subject: Custom sorting based on external (database) data To: solr-user solr-user@lucene.apache.org Date

RE: Custom Sorting

2011-04-20 Thread Michael Owen
Ok thank you for the discussion. As I thought regard to not possible within performance limits. I think the way to go is to document some more stats at index time, and use them in boost queries. :) Thanks Mike Date: Tue, 19 Apr 2011 15:12:00 -0400 Subject: Re: Custom Sorting From

Custom Sorting

2011-04-19 Thread Michael Owen
Hi, I want to able to have a custom sorting algorithm such that for each comparison of document results (A v B) I can rank them. i.e. writing a comparator like I would normally do in Java (Compares its two arguments for order. Returns a negative integer, zero, or a positive integer

Re: Custom Sorting

2011-04-19 Thread Jan Høydahl
be used in a FunctionQuery. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com On 19. apr. 2011, at 19.02, Michael Owen wrote: Hi, I want to able to have a custom sorting algorithm such that for each comparison of document results (A v B) I can rank them. i.e. writing

Re: Custom Sorting

2011-04-19 Thread lboutros
to pre-process your documents a bit and create new fields which can be used in a FunctionQuery. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com On 19. apr. 2011, at 19.02, Michael Owen wrote: Hi, I want to able to have a custom sorting algorithm

Re: Custom Sorting

2011-04-19 Thread Jonathan Rochkind
On 4/19/2011 1:43 PM, Jan Høydahl wrote: Hi, Not possible :) Lucene compares each matching document against the query and produces a score for each. Documents are not compared to eachother like normal sort, that would be way too costly. That might be true for sort by 'score' (although even

Re: Custom Sorting

2011-04-19 Thread Erick Erickson
As I understand it, sorting by field is what caches are all about. You have a big list in memory of all of the terms for a field, indexed by Lucene doc ID so fetching the term to compare by doc ID is fast, and also why the caches need to be warmed, and why sort fields should be single-valued. If

Re: Custom Sorting in Solr

2010-11-01 Thread Ezequiel Calderara
Ok i imagined that the double linked list would be far too complicated for solr. Now, how can i achieve that solr connects to a webservice and do the import? I'm sorry if i'm not clear, sometimes my english gets fuzzy :P On Fri, Oct 29, 2010 at 4:51 PM, Yonik Seeley

Custom Sorting in Solr

2010-10-29 Thread Ezequiel Calderara
Hi all guys! I'm in a weird situation here. We have index a set of documents which are ordered using a linked list (each documents has the reference of the previous and the next). Is there a way when sorting in the solr search, Use the linked list to sort? If that is not possible, how can i use

RE: Custom Sorting in Solr

2010-10-29 Thread Jonathan Rochkind
] Sent: Friday, October 29, 2010 3:39 PM To: Solr Mailing List Subject: Custom Sorting in Solr Hi all guys! I'm in a weird situation here. We have index a set of documents which are ordered using a linked list (each documents has the reference of the previous and the next). Is there a way when sorting

Re: Custom Sorting in Solr

2010-10-29 Thread Yonik Seeley
On Fri, Oct 29, 2010 at 3:39 PM, Ezequiel Calderara ezech...@gmail.com wrote: Hi all guys! I'm in a weird situation here. We have index a set of documents which are ordered using a linked list (each documents has the reference of the previous and the next). Is there a way when sorting in the

Custom Sorting with function queries

2010-09-23 Thread dl
I need to 'rank' the documents in a solr index based on some field values and the query. Is this possible using function queries? Two example to illustrate what I am trying to achieve: The index contains two fields min_rooms and max_rooms, both integers, both optional. If I query the index for

Re: custom sorting / help overriding FieldComparator

2010-09-17 Thread Chris Hostetter
Brad: 1) if you haven't already figured this out, i would suggest emailin the java-user mailing list. It's got a bigger collection of users who are familiar with the internals of the Lucnee-Java API (that's the level it seems like you are having difficulty at) 2) Maybe you mentioned your

custom sorting / help overriding FieldComparator

2010-09-09 Thread Brad Dewar
Hi I'm trying to get my (overly complex and strange) product IDs sorting properly in Solr. Approaches I've tried so far, that I've given up on for various reasons: --Normalizing/padding the IDs so they naturally sort alphabetically/alphanumerically. --Splitting the ID into multiple Solr fields

Custom sorting

2010-05-28 Thread Fornoville, Tom
Hello everyone, I'm new to Solr but have been asked to do an evaluation as an alternative for a commercial search engine. I have some experience with Lucene and a java background so I'm not afraid to dive into code :-) The application now has a very particular way of sorting results using

Custom sorting

2010-05-19 Thread dan sutton
Hi, I have a requirement to do the following: For up to the first 10 results (i.e. only on the first page) show sponsored category ads, in order of bid, but no more than 2 / category, and only if all sponsored cat' ads are more that min% of the highest score. e.g. If I had the following: min%

Re: Custom sorting

2010-05-19 Thread Daniel Cassiano
Hi Dan, It seems that you want a SearchComponent[1], something like the QueryElevationComponent[2]. Take a look how at him and I think you can build your custom solution. [1]- http://lucene.apache.org/solr/api/org/apache/solr/handler/component/SearchComponent.html [2]-

Re: AutoSuggest with custom sorting

2010-05-05 Thread Papiya Misra
This was extremely helpful. Thanks a lot. On 05/04/2010 05:30 PM, Chris Hostetter wrote: First off: i would suggest that instead of doing a simple prefix search, you look into using EdgeNGrams for this sort of thing. I'm also assuming since you need custom scoring for this, you aren't going to

Re: AutoSuggest with custom sorting

2010-05-04 Thread Chris Hostetter
First off: i would suggest that instead of doing a simple prefix search, you look into using EdgeNGrams for this sort of thing. I'm also assuming since you need custom scoring for this, you aren't going to get what you need using the TermsComponent or any other simple solution using your main

Re: AutoSuggest with custom sorting

2010-05-04 Thread Sean Timm
Chris Hostetter wrote: this can be accomplished by indexing a numeric field containing the length of the field as a number, and then doing a secondary sort on it. the fieldNorm typically takes care of this sort of thing for you, but is more of a generalized concept, and doesn't give you exact

Re: AutoSuggest with custom sorting

2010-04-27 Thread Papiya Misra
I guess my basic issue is that Solr scores all matches for prefix searches equally. Any way to score PINK over PINKSHEETS when you are searching for PI ? Thanks Papiya Papiya Misra wrote: Hi I am supposed to implement auto suggest where the prefix matches are sorted based on the following

AutoSuggest with custom sorting

2010-04-26 Thread Papiya Misra
Hi I am supposed to implement auto suggest where the prefix matches are sorted based on the following criteria. We have two fields (max characters ~ 100) that we need to search. Field 1 has only one word (no spaces) where as Field2 has multiple words separated by spaces. Example - Row1

Custom Sorting Based on Relevancy

2009-05-04 Thread David Giffin
be best if the first item stayed in place based on score, and each additional item is moved out (rows * repeated user/title). Is custom sorting the best way? or is there something else I'm not thinking about. At the moment I'm looking at doing roughly the opposite of the Query Elevate Search

Re: Custom Sorting Based on Relevancy

2009-05-04 Thread Otis Gospodnetic
Or you could collapse search results with SOLR-236. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: David Giffin da...@giffin.org To: solr-user@lucene.apache.org Sent: Monday, May 4, 2009 12:37:29 PM Subject: Custom Sorting Based

Re: Custom Sorting

2009-02-27 Thread psyron
, how a RequestHandler is working, what comes in, what comes out ... just impossible! Can someone explain where i have to add which code, to just have the same functionality as the StandardRequestHandler, but also adding a custom sorting? Thanks, Markus hossman wrote: : Sort sort

Custom Sorting Algorithm

2009-02-04 Thread wojtekpia
Is an easy way to choose/create an alternate sorting algorithm? I'm frequently dealing with large result sets (a few million results) and I might be able to benefit domain knowledge in my sort. -- View this message in context: http://www.nabble.com/Custom-Sorting-Algorithm-tp21837721p21837721

Re: Custom Sorting Algorithm

2009-02-04 Thread Otis Gospodnetic
@lucene.apache.org Sent: Wednesday, February 4, 2009 2:28:56 PM Subject: Custom Sorting Algorithm Is an easy way to choose/create an alternate sorting algorithm? I'm frequently dealing with large result sets (a few million results) and I might be able to benefit domain knowledge in my sort

Re: Custom Sorting Algorithm

2009-02-04 Thread wojtekpia
That's not quite what I meant. I'm not looking for a custom comparator, I'm looking for a custom sorting algorithm. Is there a way to use quick sort or merge sort or... rather than the current algorithm? Also, what is the current algorithm? Otis Gospodnetic wrote: You can use one

Re: Custom Sorting Algorithm

2009-02-04 Thread Mark Miller
. The on Sort method orders by relevance score - the Sort method orders by field, relevance, or doc id. - Mark wojtekpia wrote: That's not quite what I meant. I'm not looking for a custom comparator, I'm looking for a custom sorting algorithm. Is there a way to use quick sort or merge sort

Re: Custom Sorting Algorithm

2009-02-04 Thread wojtekpia
with all of the matching documents. The ordering in the priority queue is the sort. The on Sort method orders by relevance score - the Sort method orders by field, relevance, or doc id. -- View this message in context: http://www.nabble.com/Custom-Sorting-Algorithm-tp21837721p21840299.html Sent

Re: Custom Sorting Algorithm

2009-02-04 Thread Yonik Seeley
On Wed, Feb 4, 2009 at 4:45 PM, wojtekpia wojte...@hotmail.com wrote: Ok, so maybe a better question is: should I bother trying to change the sorting algorithm? I'm concerned that with large data sets, sorting becomes a severe bottleneck (this is an assumption, I haven't profiled anything to

Re: Custom Sorting

2009-02-03 Thread psyron
be good to go. Subclassing existing classes, this should only be a handful of lines of code to do. -- View this message in context: http://www.nabble.com/Custom-Sorting-tp1659p21825900.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Custom Sorting

2008-12-16 Thread psyron
as the StandardRequestHandler, but also adding a custom sorting? Thanks, Markus hossman wrote: : Sort sort = new Sort(new SortField[] : { SortField.FIELD_SCORE, new SortField(customValue, SortField.FLOAT, : true) }); : indexSearcher.search(q, sort) that appears to just be a sort

Re: Custom Sorting

2008-12-16 Thread Erik Hatcher
, but as there is no explanation of the framework, how a RequestHandler is working, what comes in, what comes out ... just impossible! Can someone explain where i have to add which code, to just have the same functionality as the StandardRequestHandler, but also adding a custom sorting? Thanks, Markus hossman

Re: custom sorting

2007-10-31 Thread Chris Hostetter
: If you went with the FunctionQuery approach for sorting by distance, would : there be any way to use the output of the FunctionQuery to limit the : documents to those within a certain radius? Or is it just for boosting : documents, not for filtering? FunctionQueries don't restrict the set of

Re: custom sorting

2007-10-26 Thread Doug Daniels
this with the dismax handler? a strict sort on the value of a a function? put the function in the bf param, don't bother with bq or pf params and change your qf params to all have really small boosts. -Hoss -- View this message in context: http://www.nabble.com/custom-sorting

RE: custom sorting

2007-09-28 Thread Sandeep Shetty
a java.lang.OutOfMemoryError: Java heap space error. is there a way to get around this? -Original Message- From: Jon Pierce [mailto:[EMAIL PROTECTED] Sent: 28 September 2007 15:48 To: solr-user@lucene.apache.org Subject: Re: custom sorting Is the machinery in place to do this now (hook up

Re: custom sorting

2007-09-28 Thread Narayanan Palasseri
Hi all, Regarding this issue, we tried using a custom request handler which inturn uses the CustomCompartor. But this has a memory leak and we are almost got stuck up at that point. As somebody mentioned, we are thinking of moving towards function query to achieve the same. Please let me know

Re: custom sorting

2007-09-28 Thread Jon Pierce
Is the machinery in place to do this now (hook up a function query to be used in sorting)? I'm trying to figure out what's the best way to do a distance sort: custom comparator or function query. Using a custom comparator seems straightforward and reusable across both the standard and dismax

Re: custom sorting

2007-09-28 Thread Chris Hostetter
: Using something like this, how would the custom SortComparatorSource : get a parameter from the request to use in sorting calculations? in general: you wouldn't you would have to specify all options as init params for the FieldType -- which makes it pretty horrible for distance

Re: custom sorting

2007-09-28 Thread Chris Hostetter
: leaks, etc.). (Speaking of which, could anyone with more Lucene/Solr : experience than I comment on the performance characteristics of the : locallucene implementation mentioned on the list recently? I've taken : a first look and it seems reasonable to me.) i cna't speak for anyone else, but

Re: custom sorting

2007-09-27 Thread Erik Hatcher
On Sep 27, 2007, at 2:50 PM, Chris Hostetter wrote: to answer the broader question of using customized LUcene SortComparatorSource objects in solr -- it is in fact possible. In Solr, all decisisons about how to sort are driven by FieldTypes. You can subclass any of the FieldTypes that come

Re: custom sorting

2007-09-27 Thread Yonik Seeley
On 9/27/07, Erik Hatcher [EMAIL PROTECTED] wrote: Using something like this, how would the custom SortComparatorSource get a parameter from the request to use in sorting calculations? perhaps hook in via function query: dist(10.4,20.2,geoloc) And either manipulate the score with that and

custom sorting

2007-09-26 Thread Sandeep Shetty
Hi Guys, this question as been asked before but i was unable to find an answer thats good for me, so hope you guys can help again i am working on a website where we need to sort the results by distance from the location entered by the user. I have indexed the lat and long info for each

Re: custom sorting

2007-09-26 Thread Mike Klaas
On 26-Sep-07, at 5:14 AM, Sandeep Shetty wrote: Hi Guys, this question as been asked before but i was unable to find an answer thats good for me, so hope you guys can help again i am working on a website where we need to sort the results by distance from the location entered by the user. I

Re: Custom Sorting

2007-08-20 Thread Chris Hostetter
: Sort sort = new Sort(new SortField[] : { SortField.FIELD_SCORE, new SortField(customValue, SortField.FLOAT, : true) }); : indexSearcher.search(q, sort) that appears to just be a sort on score withe a secondary reversed float sort on whatever field name is in the variable customValue

Custom Sorting

2007-08-19 Thread Narayanan Palasseri
Hi All, Currently we are having an application which uses Lucene for text search and we are in the process of migrating to Solr. In our Lucene code we have the following way of using the sort criteria code Sort sort = new Sort(new SortField[] { SortField.FIELD_SCORE, new

custom sorting for multivalued field

2007-07-11 Thread Del Raco
Hi, We are trying to set up Solr to search documents with multiple keywords, which we have implemented as a multivalued field. Is it possible to assign a custom sorting value for each of the values in the multivalued field? So that the document gets sorted differently, depending on the matched

custom sorting for multivalued field

2007-07-11 Thread Del Raco
Hi, We are trying to set up Solr to search documents with multiple keywords, which we have implemented as a multivalued field. Is it possible to assign a custom sorting value for each of the values in the multivalued field? So that the document gets sorted differently, depending on the matched