I'm going to be a bit pedantic here since
"before" and "after" are a little misleading. Perhaps
"during" is better.
What happens internally is that a list "rows" long
is kept (i..e the &rows=### parameter). Let's say
&rows=20. A list to hold 20 items is created. The
first 20 docs are just put in t
Naveen,
The documents are sorted before. Lets say if it was a post sort and you are
fetching 10 rows it would have pulled up top 10 rows and sorted it. but
that is not what happens in solr it sorts in all available docs as per the
query and goves the number of rows as per your requirment.
Regards
Hi Naveen,
I am not too sure what you're after but the sorting mechanism is applied
after search results are fetched.
>From Solr Ref Guide:
https://cwiki.apache.org/confluence/display/solr/Common+Query+Parameters#CommonQueryParameters-ThesortParameter
The sort parameter *arranges search results*
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
:
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
http://ww
Never meant to imply that it wasn't memory bound! It _is_ memory bound
(or at least can be), it's just that the memory consumed isn't
proportional to the number of documents matched, but to the total
number of documents in your index. Although that all said, once all
the structures are in memory, t
Hi Erick,
I didn't know this isn't memory bound, but it got to be CPU bound, no?
Thanks
Steve
On Mon, Jun 1, 2015 at 12:27 PM, Erick Erickson
wrote:
> Steve:
>
> Surprisingly, the number of hits is completely irrelevant for the
> memory requirements for sorting. The base memory size is, AFAIK
Steve:
Surprisingly, the number of hits is completely irrelevant for the
memory requirements for sorting. The base memory size is, AFAIK, an
array of maxDoc ints (you can find maxDoc on the admin screen).
There's some additional overhead, but that's the base size. If you sue
DocValues, much of the
On 6/1/2015 9:29 AM, Steven White wrote:
> 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 (discar
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
> 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.
>
displayed.
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.
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.
--
R
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.
ot;name_s" as "string" for sorting (and faceting.)
-- 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 ma
.n3.nabble.com/Paging-and-sorting-in-Solr-tp4057000p4057013.html
Sent from the Solr - User mailing list archive at Nabble.com.
amp;sort=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
S
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 the Solr - User mailing list archive at Nabble.com.
ies 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.
>>
>> --
>> Regards,
>> Sandip Agarwal
--
Walter Underwood
wun...@wunderwood.org
rchQuerySet method by('-score', 'priority'), 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:
>
le 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.
--
Regards,
Sandip Agarwal
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 wrote:
> Yes, these documents have l
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
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
2
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 al
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 return
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
>
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 wrote:
> Hi,
>
> Any suggestions,
>
> Am I trying to do too much with
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 wrote:
Jan,
Thanks for the response,
I though of using it, but it will be suboptimal to do this in the scenario
I have. I guess I have to explain the scenario better, let me try it again:-
1. I have importance based buckets in the system, this is implemented using
a variable named bucket_count having i
Hi,
How about trying grouping with paging?
First you do
group=true&group.field=advertiserId&group.limit=1&group.offset=0&group.main=true&sort=something&group.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 gr
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 a
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 wrote:
> On Fri, Oct 29, 201
On Fri, Oct 29, 2010 at 3:39 PM, Ezequiel Calderara 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 solr search,
__
From: Ezequiel Calderara [ezech...@gmail.com]
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
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
: 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 ar
Hi guys:
I am going to build up a audio search based on solr. I worked out a
prototype like :
schema.xml:
then import the data from mysql and add it to the index in XML format.
My problems are :
1 support a query language, "songname + artist " or "artist + album" or "
artist
Great, thanks. I was hoping the solution you were suggesting was along
those lines.
Chris Hostetter wrote:
: 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
: 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
: ca
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
can only
: having issues with it. Some fields work some do not and my results seem
: to suggest that it doesn't work when there are any non-alphaNumeric
: values in the fields. Can someone out there either confirm this or let
: me know what I may be doing wrong? is it a matter of using a different
: ana
I've been attempting to utilize Solr 1.1's sorting feature using the
Syntax provided on the wiki [q=; (asc|desc)] but I'm
having issues with it. Some fields work some do not and my results seem
to suggest that it doesn't work when there are any non-alphaNumeric
values in the fields. Can so
43 matches
Mail list logo