Re: Solr sorting situation!

2013-09-30 Thread Gustav
Anyone with any ideas? -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-sorting-situation-tp4091966p4092688.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr sorting and relevance

2013-03-28 Thread Joel Bernstein
Otis brings up a good point. Possibly you could put logic in your function query to account for this. But it may be that you can't achieve the mix you're looking for without taking direct control. That is the main reason that SOLR-4465 was put out there, for cases where direct control is needed. I

Re: Solr sorting and relevance

2013-03-28 Thread Otis Gospodnetic
Hi, But can you ever get this universally right? In some cases there is very little inventory and in some case there is a ton of inventory, so even if you use a small boost for inventory, when the intentory is very large, that will overpower the title boost, no? Otis -- Solr & ElasticSearch Suppo

Re: Solr sorting and relevance

2013-03-28 Thread Joel Bernstein
If you had a high boost on the title with a moderate boost on the inventory it sounds like you'd get boots first ordered by inventory followed by jeans ordered by inventory. Because the heavy title boost would move the boots to the top. You can play with the boost factors to try and get the mix you

Re: Solr sorting and relevance

2013-03-28 Thread scallawa
Thanks for the fast response. I am still just learning solr so please bear with me. This still sounds like the wrong products would appear at the top if they have more inventory unless I am misunderstanding. High boost low boost seems to make sense to me. That alone would return the more rele

Re: Solr sorting and relevance

2013-03-27 Thread Joel Bernstein
It sounds like you might be able to get the mix you want with three different boosts: 1) High boost on title 2) Lower boost on description 3) Function query boost on inventory The high boost on title will help push products with matches in the title to the top. The function query boost on invento

Re: Solr Sorting is not working properly on long Fields

2013-03-24 Thread SUJIT PAL
Hi ballusethuraman, I am sure you have done this already, but just to be sure, did you reindex your existing kilometer data after you changed the data type from string to long? If not, then you should. -sujit On Mar 23, 2013, at 11:21 PM, ballusethuraman wrote: > Hi, I am having a colum

Re: Solr sorting is not working properly on long Fields

2013-03-24 Thread ballusethuraman
Yes I did.. But there is no change in result.. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-sorting-is-not-working-properly-on-long-Fields-tp4050834p4050844.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr sorting is not working properly on long Fields

2013-03-23 Thread Gora Mohanty
On 24 March 2013 11:56, ballusethuraman wrote: > Hi, I am having a column named 'Kilometers' and when I try to sort with that > it is not working properly. [...] > Initially Kilometers column was having string as datatype and I thought the > problem could be because of that and i changed the datat

Re: Solr Sorting & Caching

2012-09-11 Thread Amey Patil
>Are you using a TrieDateField for the dates? Yes >Consider creating and re-using a filter for the keywords and let the >query consist of the date range only. In this case, do I have to configure any cache or solr's default configurations are enough? >Guessing here: You request all the results fr

Re: Solr Sorting & Caching

2012-09-11 Thread Toke Eskildsen
On Tue, 2012-09-11 at 08:00 +0200, Amey Patil wrote: > Our solr index (Solr 3.4) has over 100 million docuemnts. [...] > *((keyword1 AND keyword2...) OR (keyword3 AND keyword4...) OR ...) AND > date:[date1 TO *]* > No. of keywords can be in the range of 100 - 1000. > We are adding sort parameter *'

Re: Solr sorting question to boost a certain field first

2012-02-29 Thread Mike Austin
Boom! This works: sort=map(query($qq,-1),0, , 1)+desc,score+desc&qq=domain:domainA Thanks, Mike On Wed, Feb 29, 2012 at 3:45 PM, Mike Austin wrote: > I have content that I index for several different domains. What I'd like > to do is have all search results found for domainA returned

Re: Solr sorting issue : can not sort on multivalued field

2011-12-07 Thread pravesh
Was that field multivalued="true" earlier by any chance??? Did you rebuild the index from scratch after changing it to multivalued="false" ??? Regards Pravesh -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-sorting-issue-can-not-sort-on-multivalued-field-tp3564266p356683

Re: solr sorting on multiple conditions, please help

2011-05-19 Thread Chris Hostetter
: sort=query({!v="area_id: 78153"}) desc, score desc : : What I want to achieve is sort by if there is a match with area_id, then : sort by the actual score I think you can use the "map" function here to map all scores greater then zero (matching docs) to some fixed value. something like this

Re: solr sorting problem

2011-05-02 Thread Erick Erickson
Your query is going against the default field (defined in schema.xml). Have you tried a fielded search? And it would best to start a new thread for new questions see: http://people.apache.org/~hossman/#threadhijack Best Erick On Mon, May 2, 2011 at 3:46 AM, Pratik wrote: > Hi, > Thanks for your

Re: solr sorting problem

2011-05-02 Thread Pratik
Hi, Were you able to sort the results using alphaOnlySort ? If yes what changes were made to the schema and data-config ? Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/solr-sorting-problem-tp486144p2889473.html Sent from the Solr - User mailing list archive at Nabb

Re: solr sorting problem

2011-05-02 Thread Pratik
Hi, Thanks for your reply. I'm, using "commit=true" while indexing, and it does index the records and show the number of records indexed. The problem is that search yields 0 records ( numFound="0" ). e.g. 00onappl There are some entries for spell checking in my schema too. e.g. The S

Re: solr sorting problem

2011-05-01 Thread Lance Norskog
Two scenarios: 1) you call the indexing API but do not call 'commit'. This makes data visible to searching. 2) the default solrconfig has HTTP caching turned on. So you redo the search url, and you get the old result. This is really really annoying. And you have to change the configuration to speci

Re: solr sorting problem

2011-05-01 Thread Pratik
Hello, I got over that problem but now i am facing a new problem. Indexing works but search does not. I used the following line in the schema:- and I'm trying to use the default "alphaOnlySort" in the sample schema.xml. Database is MySQL, there is a column/field named ColXYZ My data-

Re: solr sorting problem

2011-04-22 Thread Erick Erickson
Let's see the query you submit. This looks like a typo or an improperly specified field name ":foodDesc" Best Erick On Fri, Apr 22, 2011 at 8:18 AM, Pratik wrote: > Were you able to get it work .. if yes how ? > I'm having almost the same problem. > > I used the " fieldType name="alphaOnlyS

Re: solr sorting problem

2011-04-22 Thread Pratik
Were you able to get it work .. if yes how ? I'm having almost the same problem. I used the " fieldType name="alphaOnlySort" class="solr.TextField" as in the sample schema.xml , to define a field named "alphaname". Then copied from one of the fields name "foodDescUS" to "alphaname". When i

Re: Solr sorting

2011-03-14 Thread Ahmet Arslan
--- On Mon, 3/14/11, Denis Kuzmenok wrote: > From: Denis Kuzmenok > Subject: Re: Solr sorting > To: "Ahmet Arslan" > Date: Monday, March 14, 2011, 12:24 PM > > > --- On Mon, 3/14/11, Denis Kuzmenok > wrote: > > >> From: Denis Kuzmenok

Re: Solr sorting

2011-03-14 Thread Denis Kuzmenok
> --- On Mon, 3/14/11, Denis Kuzmenok wrote: >> From: Denis Kuzmenok >> Subject: Solr sorting >> To: solr-user@lucene.apache.org >> Date: Monday, March 14, 2011, 10:23 AM >> Hi. >> Is there any way to make such scheme working: >> I  have  many  documents,  each  >> has  a  random field to enabl

Re: Solr sorting

2011-03-14 Thread Ahmet Arslan
--- On Mon, 3/14/11, Denis Kuzmenok wrote: > From: Denis Kuzmenok > Subject: Solr sorting > To: solr-user@lucene.apache.org > Date: Monday, March 14, 2011, 10:23 AM > Hi. > Is there any way to make such scheme working: > I  have  many  documents,  each  > has  a  random field to enable random >

Re: Solr sorting problem

2010-10-27 Thread Ron Mayer
Savvas-Andreas Moysidis wrote: > In my understanding sorting on a field for which analysis has yielded > multiple terms just doesn't make sense.. > If you have document#1 with a field A which has the terms Epsilon, Alpha, > and document#2 with field A which has the terms Beta, Delta and request > a

RE: Solr sorting problem

2010-10-27 Thread Toke Eskildsen
Jonathan Rochkind [rochk...@jhu.edu] wrote: > I too sometimes have similar use cases, and my best ideas about how to > solve them involve using faceting --- you can facet on a multi-valued > field, and you can sort facets--but you can only sort facets by "index > order", a strict byte-by-byte sort.

Re: Solr sorting problem

2010-10-27 Thread Lance Norskog
You may not sort on a tokenized field. You may not sort on a multiValued field. You can only have one term in a field. If there are more search terms than documents, A) sorting doesn't mean anything and B) Lucene will throw an exception. Erick Erickson wrote: In general, the behavior when so

Re: Solr sorting problem

2010-10-26 Thread Ron Mayer
Erick Erickson wrote: > In general, the behavior when sorting is not predictable when > sorting on a tokenized field, which "text" is. What would > it mean to sort on a field with "erick" "Moazzam" as tokens > in a single document? Should it be in the "e"s or the "m"s? Might it be possible or reas

Re: Solr sorting problem

2010-10-23 Thread Erick Erickson
In general, the behavior when sorting is not predictable when sorting on a tokenized field, which "text" is. What would it mean to sort on a field with "erick" "Moazzam" as tokens in a single document? Should it be in the "e"s or the "m"s? That said, you probably want to watch out for case Be

Re: Solr sorting problem

2010-10-22 Thread Moazzam Khan
For anyone who faced the same problem, changing the field to string from text worked! -Moazzam On Fri, Oct 22, 2010 at 8:50 AM, Moazzam Khan wrote: > The field type of the first name and last name is text. Could that be > why it's not sorting properly? I just changed it to string and started > a

Re: Solr sorting problem

2010-10-22 Thread Moazzam Khan
The field type of the first name and last name is text. Could that be why it's not sorting properly? I just changed it to string and started a full-import. Hopefully that will work. Thanks, Moazzam On Thu, Oct 21, 2010 at 7:42 PM, Jayendra Patil wrote: > need additional information . > Sorti

Re: Solr sorting problem

2010-10-21 Thread Jayendra Patil
need additional information . Sorting is easy in Solr just by passing the sort parameter However, when it comes to text sorting it depends on how you analyse and tokenize your fields Sorting does not work on fields with multiple tokens. http://wiki.apache.org/solr/FAQ#Why_Isn.27t_Sorting_Worki

Re: Solr Sorting, merging/weighting sort fields

2008-11-16 Thread lajkonik86
I have trouble balancing between popularity and search relevance. The trouble is combining boost factors and a mm(minimum match) of less than 100%. The mm leads the search to return also less relevant items. Two conflicting main scenarios exist: - generic category search (say something like tft)

Re: solr sorting question

2008-05-28 Thread Alexander Ramos Jardim
If you want to have some categories before another ones, but the other categories sorted alphabeticaly, you could create another field on your index like cat_priority and put numerical values, so you can sort by this field and by secondarily by your category name. 2008/5/27 anuvenk <[EMAIL PROTECT

Re: solr sorting problem

2008-05-23 Thread pmg
riginal Message >> From: pmg <[EMAIL PROTECTED]> >> To: solr-user@lucene.apache.org >> Sent: Thursday, May 22, 2008 10:19:52 PM >> Subject: Re: solr sorting problem >> >> >> I forgot to mention that I made changes to schema after indexing. >

Re: solr sorting problem

2008-05-23 Thread Otis Gospodnetic
e.org > Sent: Thursday, May 22, 2008 10:19:52 PM > Subject: Re: solr sorting problem > > > I forgot to mention that I made changes to schema after indexing. > > > pmg wrote: > > > > I have problem sorting solr results. Here is my solr confi

Re: solr sorting problem

2008-05-22 Thread pmg
I forgot to mention that I made changes to schema after indexing. pmg wrote: > > I have problem sorting solr results. Here is my solr config > > > > stored="true"/> > > > > > > > > search query > > select/?&rows=100&start=0&q=artistId:100346%20AND%20type:trac

RE: SOLR sorting - question

2007-12-04 Thread Kasi Sankaralingam
Thanks a ton, that worked -Original Message- From: Ryan McKinley [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 04, 2007 3:08 PM To: solr-user@lucene.apache.org Subject: Re: SOLR sorting - question Kasi Sankaralingam wrote: > Do I need to select the fields in the query that I

Re: SOLR sorting - question

2007-12-04 Thread Ryan McKinley
Kasi Sankaralingam wrote: Do I need to select the fields in the query that I am trying to sort on?, for example if I want sort on update date then do I need to select that field? I don't think so... are you getting an error? I run queries like: /select?q=*:*&fl=name&sort=added desc without p

Re: SOLR sorting - question

2007-12-04 Thread climbingrose
I don't think you have to. Just try the query on the REST interface and you will know. On Dec 5, 2007 9:56 AM, Kasi Sankaralingam <[EMAIL PROTECTED]> wrote: > Do I need to select the fields in the query that I am trying to sort on?, > for example if I want sort on update date then do I need to se

Re: Solr Sorting, merging/weighting sort fields

2007-05-10 Thread Walter Underwood
The boost is a way to adjust the weight of that field, just like you adjust the weight of any other field. If the boost is dominating the score, reduce the weight and vice versa. wunder On 5/10/07 9:22 PM, "Chris Hostetter" <[EMAIL PROTECTED]> wrote: > > : Is this correct? bf is a boosting fun

Re: Solr Sorting, merging/weighting sort fields

2007-05-10 Thread Chris Hostetter
: I actually used the _val_ hack, so query foo:bar : _val_:"ord(popularity)^0.5", still playing with it though its still : skewing results a bit to much. if your query string is... foo:bar _val_:ord(popularity)^0.5 ..then part of your problem may be that (unless you've changed the default o

Re: Solr Sorting, merging/weighting sort fields

2007-05-10 Thread Chris Hostetter
: Is this correct? bf is a boosting function, so a function is needed there, no? : If I'm not missing someting, the ^0.5 is just a boost, and "popularity" : is just a (numeric) field. So boosting a numeric field wouldn't make : sense, but appying it to a function would. Am I missing something?

Re: Solr Sorting, merging/weighting sort fields

2007-05-10 Thread Nick Jenkin
]> To: solr-user@lucene.apache.org Sent: Wednesday, May 9, 2007 8:05:53 PM Subject: Re: Solr Sorting, merging/weighting sort fields No problem. Use a boost function. In a DisMaxRequestHandler spec in solrconfig.xml, specify this: popularity^0.5 This value will be added to the score

Re: Solr Sorting, merging/weighting sort fields

2007-05-10 Thread Otis Gospodnetic
OTECTED]> To: solr-user@lucene.apache.org Sent: Wednesday, May 9, 2007 8:05:53 PM Subject: Re: Solr Sorting, merging/weighting sort fields No problem. Use a boost function. In a DisMaxRequestHandler spec in solrconfig.xml, specify this: popularity^0.5 This value will be added to the score

Re: Solr Sorting, merging/weighting sort fields

2007-05-09 Thread Nick Jenkin
Thanks, worked perfectly! -Nick On 5/10/07, Walter Underwood <[EMAIL PROTECTED]> wrote: No problem. Use a boost function. In a DisMaxRequestHandler spec in solrconfig.xml, specify this: popularity^0.5 This value will be added to the score before ranking. You will probably need to f

Re: Solr Sorting, merging/weighting sort fields

2007-05-09 Thread Walter Underwood
No problem. Use a boost function. In a DisMaxRequestHandler spec in solrconfig.xml, specify this: popularity^0.5 This value will be added to the score before ranking. You will probably need to fuss with the multiplier to get the popularity to the right proportion of the total score. I