Re: Sorting in solr

2016-07-11 Thread Erick Erickson
sortParameter >> >> The sort parameter *arranges search results* in either ascending (asc) or >> descending (desc) order. >> >> Thanks, >> Sandeep >> >> On 11 July 2016 at 11:13, Naveen Pajjuri <pajjuri.re...@myntra.com> wrote: >> &g

Re: Sorting in solr

2016-07-11 Thread Dheerendra Kulkarni
ri.re...@myntra.com> wrote: > > > Hi, > > If i apply some sorting order on solr. when are the Documents sorted. > > > >1. are documents sorted after fetching the results ? > >2. or we get sorted documents ? > > > > Regards, > > Naveen > > > -- Regards, Dheerendra

Re: Sorting in solr

2016-07-11 Thread Sandeep Mestry
lts* in either ascending (asc) or descending (desc) order. Thanks, Sandeep On 11 July 2016 at 11:13, Naveen Pajjuri <pajjuri.re...@myntra.com> wrote: > Hi, > If i apply some sorting order on solr. when are the Documents sorted. > >1. are documents sorted after fetching

Sorting in solr

2016-07-11 Thread Naveen Pajjuri
Hi, If i apply some sorting order on solr. when are the Documents sorted. 1. are documents sorted after fetching the results ? 2. or we get sorted documents ? Regards, Naveen

Re: Sorting in Solr

2015-06-03 Thread Chris Hostetter
: https://cwiki.apache.org/confluence/display/solr/Common+Query+Parameters#CommonQueryParameters-ThesortParameter : : I think we may have an omission from the docs -- docValues can also be : used for sorting, and may also offer a performance advantage. I added a note about that. -Hoss

Re: Sorting in Solr

2015-06-02 Thread Steven White
Solr sort top N results (discarding everything else) or must such sorting be cone on the client side? Solr supports sorting. https://wiki.apache.org/solr/CommonQueryParameters#sort https://cwiki.apache.org/confluence/display/solr/Common+Query+Parameters#CommonQueryParameters

Re: Sorting in Solr

2015-06-02 Thread Erick Erickson
may contain 1000's of hits if not millions. Can you guide me on how I can do this? Is there a way to tell Solr sort top N results (discarding everything else) or must such sorting be cone on the client side? Solr supports sorting. https://wiki.apache.org/solr/CommonQueryParameters

Re: Sorting in Solr

2015-06-01 Thread Shawn Heisey
(discarding everything else) or must such sorting be cone on the client side? Solr supports sorting. https://wiki.apache.org/solr/CommonQueryParameters#sort https://cwiki.apache.org/confluence/display/solr/Common+Query+Parameters#CommonQueryParameters-ThesortParameter I think we may have an omission from

Sorting in Solr

2015-06-01 Thread Steven White
Hi everyone, I need to be able to sot in Solr. Obviously, I need to do this in a way sorting won't cause OOM when a result may contain 1000's of hits if not millions. Can you guide me on how I can do this? Is there a way to tell Solr sort top N results (discarding everything else) or must such

Re: Sorting in Solr

2015-06-01 Thread Erick Erickson
contain 1000's of hits if not millions. Can you guide me on how I can do this? Is there a way to tell Solr sort top N results (discarding everything else) or must such sorting be cone on the client side? Solr supports sorting. https://wiki.apache.org/solr/CommonQueryParameters#sort https

Re: Sorting in SOLR

2015-03-03 Thread Aman Tandon
in context: http://lucene.472066.n3.nabble.com/Sorting-in-SOLR-tp4190294.html Sent from the Solr - User mailing list archive at Nabble.com.

Sorting in SOLR

2015-03-02 Thread Rajesh
. How Can I achieve this. Thanks in advance, Rajesh -- View this message in context: http://lucene.472066.n3.nabble.com/Sorting-in-SOLR-tp4190294.html Sent from the Solr - User mailing list archive at Nabble.com.

Snippets sorting in SOLR is not working correctly

2015-01-15 Thread Behzad Qureshi
Hi, I have posted a question http://stackoverflow.com/questions/27746299/snippets-sorting-in-solr-is-not-working-correctly on stack exchange related to highlighted snippets sorting. Multiple snippets returned against single document are not in sorted order. Thanks in advance. -- Regards

Re: Sorting on solr results

2013-12-05 Thread Shawn Heisey
On 12/4/2013 11:59 PM, anuragwalia wrote: I required to sort product on webshop price with position. e.g. If we have three product (A, B ,C) needs to sort Price asc and position asc. IDPrice Position A 10 3 B 10 2 C 20 5 Result should be sorted forst

Re: Sorting on solr results

2013-12-05 Thread Erick Erickson
Isn't this just sort=Price asc, Position asc ? But I agree with Shawn, I have no clue what :@QueryTerm=*OnlineFlag=1@Sort.Price=0,position=0 is all about. Possibly a front end to Solr that has its own query language? In which case you'd have to talk to whoever maintains that Best, Erick On

Sorting on solr results

2013-12-04 Thread anuragwalia
in context: http://lucene.472066.n3.nabble.com/Sorting-on-solr-results-tp4105060.html Sent from the Solr - User mailing list archive at Nabble.com.

Sorting the Solr Document after clubbing them from multiple instances

2013-07-24 Thread Vineet Mishra
Hi I have a Master Solr through which I am querying to multiple solr instance and aggregating their response and responding back to the user. Now the requirement is that when I get the data querying multiple solr instance, I want it to be sorted based on some field name. Say I have 3 Slave

Re: Sorting the Solr Document after clubbing them from multiple instances

2013-07-24 Thread Erick Erickson
Your application has to handle it, this is kind of a federated search thing. So a sorted map is a fine way to go, or you could just have a sorted set with an overridden compare function. On Wed, Jul 24, 2013 at 2:05 AM, Vineet Mishra clearmido...@gmail.com wrote: Hi I have a Master Solr

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

Paging and sorting in Solr

2013-04-18 Thread hassancrowdc
the results first and then apply rows and start. How can i do that? -- View this message in context: http://lucene.472066.n3.nabble.com/Paging-and-sorting-in-Solr-tp4057000.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Paging and sorting in Solr

2013-04-18 Thread Oussama Jilal
=manufacturer asc It will give me first 25 matching results and then sort only those. I want it to sort all the results first and then apply rows and start. How can i do that? -- View this message in context: http://lucene.472066.n3.nabble.com/Paging-and-sorting-in-Solr-tp4057000.html Sent from

Re: Paging and sorting in Solr

2013-04-18 Thread hassancrowdc
.n3.nabble.com/Paging-and-sorting-in-Solr-tp4057000p4057013.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Paging and sorting in Solr

2013-04-18 Thread Jack Krupansky
-Original Message- From: hassancrowdc Sent: Thursday, April 18, 2013 11:35 AM To: solr-user@lucene.apache.org Subject: Re: Paging and sorting in Solr Hi, I double checked. It is the field. if i sort through manufacturer field it sorts but if i sort through name it does not sort. both the field has

Re: Paging and sorting in Solr

2013-04-18 Thread hassancrowdc
thnx -- View this message in context: http://lucene.472066.n3.nabble.com/Paging-and-sorting-in-Solr-tp4057000p4057098.html Sent from the Solr - User mailing list archive at Nabble.com.

Selective Sorting in Solr

2012-10-15 Thread Sandip Agarwal
am trying? I have even posted a question on StackOverflow: http://stackoverflow.com/questions/12890165/selective-sorting-in-solr Hoping for your guidance. -- Regards, Sandip Agarwal

Re: Selective Sorting in Solr

2012-10-15 Thread Upayavira
'), but this also applies to exact matches having the same score. What should I try to achieve the above? Is it even possible to achieve what I am trying? I have even posted a question on StackOverflow: http://stackoverflow.com/questions/12890165/selective-sorting-in-solr Hoping for your guidance

Re: Selective Sorting in Solr

2012-10-15 Thread Walter Underwood
on StackOverflow: http://stackoverflow.com/questions/12890165/selective-sorting-in-solr Hoping for your guidance. -- Regards, Sandip Agarwal -- Walter Underwood wun...@wunderwood.org

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
Hi All I have an index which contains a Catalog of Products and Categories, with Solr 4.0 from trunk Data is organized like this: Category: Books Sub Category: Programming Products: Product # 1, Price: Regular Sort Order:1 Product # 2, Price: Markdown, Sort Order:2 Product # 3

Re: How to do custom sorting in Solr?

2012-06-10 Thread Erick Erickson
Skimming this, I two options come to mind: 1 Simply apply primary, secondary, etc sorts. Something like sort=subcategory asc,markdown_or_regular desc,sort_order asc 2 You could also use grouping to arrange things in groups and sort within those groups. This has the advantage of

Re: How to do custom sorting in Solr?

2012-06-10 Thread roz dev
Thanks Erik for your quick feedback When Products are assigned to a category or Sub-Category then they can be in any order and price type can be regular or markdown. So, reg and markdown products are intermingled as per their assignment but I want to sort them in such a way that we ensure that

Re: How to do custom sorting in Solr?

2012-06-10 Thread Erick Erickson
2M docs is actually pretty small. Sorting is sensitive to the number of _unique_ values in the sort fields, not necessarily the number of documents. And sorting only works on fields with a single value (i.e. it can't have more than one token after analysis). So for each field you're only talking

Re: How to do custom sorting in Solr?

2012-06-10 Thread roz dev
Yes, these documents have lots of unique values as the same product could be assigned to lots of other categories and that too, in a different sort order. We did some evaluation of heap usage and found that with kind of queries we generate, heap usage was going up to 24-26 GB. I could trace it to

Re: Using Customized sorting in Solr

2012-04-30 Thread solr user
Hi, Any suggestions, Am I trying to do too much with solr? Is there any other search engine, which should be used here? I am looking into solr codebase and planning to modify QueryComponent. Will this be the right approach? Regards, Shivam On Fri, Apr 27, 2012 at 10:48 AM, solr user

Re: Using Customized sorting in Solr

2012-04-30 Thread Erick Erickson
Consider writing a custom sort method or a custom function that you use for sorting. Be _very_ careful that anything you do here is very efficient, it'll be called a _lot_. Best Erick On Mon, Apr 30, 2012 at 2:10 AM, solr user solr.user...@gmail.com wrote: Hi, Any suggestions, Am I trying

Using Customized sorting in Solr

2012-04-26 Thread solr user
Hi, We are planning to move the search of one of our listing based portal to solr/lucene search server from sphinx search server. But we are facing a challenge is porting customized sorting being used in our portal. We only have last 60 days of data live.The algorithm is as follows:- 1. Put

Re: Using Customized sorting in Solr

2012-04-26 Thread Jan Høydahl
Hi, How about trying grouping with paging? First you do group=truegroup.field=advertiserIdgroup.limit=1group.offset=0group.main=truesort=somethinggroup.sort=how-much-paid desc That gives you one listing per advertiser, sorted the way you like. Then to grab the next batch of ads, you go

Alternate score-based sorting for Solr Grouping

2011-12-06 Thread George Stathis
My previous subject line was not very scannable. Apologies for the re-post, I'm just hoping to get more eye-balls and hopefully some insights. Thank you in advance for your time. See below. -GS On Mon, Dec 5, 2011 at 1:37 PM, George Stathis gstat...@gmail.com wrote: Currently, solr grouping

Re: Custom Sorting in Solr

2010-11-01 Thread Ezequiel Calderara
sorting in the solr search, Use the linked list to sort? It seems like you should be able to encode this linked list as an integer instead, and sort by that? If there are multiple linked lists in the index, it seems like you could even use the high bits of the int to designate which list

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
of data is not really the expected use case for Solr sorting. Sorry, I'm not sure what this means or how it would help: use the DIH to access a Service in WCF or a Webservice? Maybe someone else will know exactly what you mean. Or maybe if you rephrase with more specificity as to how you think

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

Re: How to modify the revelance sorting in solr?

2009-02-02 Thread Chris Hostetter
: 1 support a query language, songname + artist or artist + album or : artist + album + songname, some guys would like to query like because of : you ne-yo. So I need to cut words in the proper way. How to modify the way : of cutting words in solr ( recognize the song name or album or artist)

How to modify the revelance sorting in solr?

2009-01-20 Thread fei dong
Hi guys: I am going to build up a audio search based on solr. I worked out a prototype like : schema.xml: field name=id type=string indexed=true stored=true required=true / field name=artist type=text indexed=true stored=true/ field name=album type=text indexed=true stored=true/

Re: Sorting in Solr

2007-05-03 Thread Chris Hostetter
: Just to be clear, I have multiple fields per document that Are coming : back in the queried XML. Let's say it's name, id, date, description. I : want to sort dynamically on fields but for my test case on Description. : Are you suggesting that there be one field defined per document, or you :