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 b
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 should
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 :
doc1
ProductInstance
hydraulic
doc2
ProductInstance
other hydra
://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 tree
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
e
> >> >> sub-category in a such a way that products which are on markdown,
> are at
> >> >> the bottom of the documents list and other products
> >> >> which are on regular price, are sorted as per their sort order in
> their
> >> >> sub-cat
list and other products
>> >> which are on regular price, are sorted as per their sort order in their
>> >> sub-category.
>> >>
>> >> Expected Results are
>> >>
>> >> Category: Books
>> >>
>> >> Sub Category: Programmi
Sort Order:101
> >> Product # 3 Price: Regular, Sort Order:3
> >> Product # 4 Price: Regular, Sort Order:4
> >>
> >> .
> >> ...
> >> Product # 100 Price: Regular, Sort Order:100
> >>
> >> Sub Category: Fiction
>
:3
>> Product # 4 Price: Regular, Sort Order:4
>>
>> .
>> ...
>> Product # 100 Price: Regular, Sort Order:100
>>
>> Sub Category: Fiction
>>
>> Products:
>>
>> Product # 1, Price: Markdown, Sort Order:71
>> Product #
> ...
> Product # 100 Price: Regular, Sort Order:100
>
> Sub Category: Fiction
>
> Products:
>
> Product # 1, Price: Markdown, Sort Order:71
> Product # 2, Price: Regular, Sort Order:2
> Product # 3 Price: Regular, Sort Order:3
> Product # 4 Price: Markdown, Sort O
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
/solr-external-scoring/
On Thu, 2011-05-05 at 13:12 -0700, Ahmet Arslan wrote:
>
> --- On Thu, 5/5/11, Sujit Pal wrote:
>
> > From: Sujit Pal
> > Subject: Custom sorting based on external (database) data
> > To: "solr-user"
> > Date: Thursday, May 5, 20
--- On Thu, 5/5/11, Sujit Pal wrote:
> From: Sujit Pal
> Subject: Custom sorting based on external (database) data
> To: "solr-user"
> Date: Thursday, May 5, 2011, 11:03 PM
> Hi,
>
> Sorry for the possible double post, I wrote this up but had
> the
&
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 search
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
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 y
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 i
> Thanks
> > Mike
> >
> >
> >
> >
>
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://lucene.472066.n3.nabble.com/Custom-Sorting-tp2839375p2839526.html
> To s
an 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 t
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 as the
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
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 sor
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 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]- http://wiki.apache.org/solr
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% =1
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
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 exac
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
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 crit
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
```Fiel
Or you could collapse search results with SOLR-236.
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
- Original Message
> From: David Giffin
> To: solr-user@lucene.apache.org
> Sent: Monday, May 4, 2009 12:37:29 PM
> Subject: Custom Sorting Based
; down search
results. It would 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
o
e problem, also need to plugin my "customComparator",
>> 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
On Wed, Feb 4, 2009 at 4:45 PM, wojtekpia 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 verify).
No...
ity queue of size n is
> filled 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/
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 o
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:
>
>
>
he.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 kn
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-tp21837721p218
onfigure it
> into solrconfig.xml and should 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
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,
M
eone explain where i have to add which code, to just have the same
> functionality as the StandardRequestHandler, but also adding a custom
> sorting?
I do not know much about this but I can see that the
org.apache.solr.handler.component.QueryElevationComponent inside Solr uses a
custom sort t
ity 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)
: 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 d
her 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-tf4521989.html#a13436617
Sent from the Solr - User mailing list archive at Nabble.com.
: 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
: > 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
calculatio
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 a
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 hand
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 wheth
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
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 w
: > Previously we were using lucene to do this. by using the
: > SortComparatorSource we could sort the documents returned by distance
: > nicely. we are now switching over to lucene because of the features it
: > provides, however i am not able to see a way to do this in Solr.
Someone started a
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 ha
> 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 ea
: 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
Sort sort = new Sort(new SortField[]
{ SortField.FIELD_SCORE, new SortField(customValue,
: 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 value in the multivalued field.
Sorting happens extremely independently from matching ... there is no
mechanism
sulting -- http://lucene-consulting.com/
- Original Message
From: Del Raco <[EMAIL PROTECTED]>
To: solr-user@lucene.apache.org
Sent: Wednesday, July 11, 2007 9:24:10 PM
Subject: custom sorting for multivalued field
Hi,
We are trying to set up Solr to search documents with
multip
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
68 matches
Mail list logo