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
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
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
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/
://lucene.472066.n3.nabble.com/Autosuggest-Custom-sorting-tp4092980.html
Sent from the Solr - User mailing list archive at Nabble.com.
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
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
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
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
.
...
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
.
...
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
.
...
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
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
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
--- 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
/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
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
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
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
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
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
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
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
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
]
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
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
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
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
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
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
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%
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]-
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
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
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
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
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
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
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
, 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
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
@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
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
. 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
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
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
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.
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
,
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
: 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
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
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
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
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
: 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
: 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
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
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
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
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
: 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
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
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
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
64 matches
Mail list logo