modify SOLR scoring

2009-04-23 Thread Bertrand DUMAS-PILHOU

Hi everybody,

I'm using SOLR with a schema (for example) like this:
parutiondate, date, indexed, not stored
fulltext, stemmed, indexed, not stored

I know it's possible to order by a field or more, but I want to order by
score and modify the "scrore"" formula.
I'll want keep the SOLR score but add a new parameter in the formula to
boost the score of the most recent document.

What is the best way to do this ?

Thanks.

Excuse for my english.


-- 
View this message in context: 
http://www.nabble.com/modify-SOLR-scoring-tp23198326p23198326.html
Sent from the Solr - User mailing list archive at Nabble.com.



RE: Highlight question

2009-04-23 Thread Bertrand DUMAS-PILHOU

Thanks a lot for your answer, I'm going to test and I will reply.

Bertrand

Ensdorf Ken wrote:
> 
> Add the following parameters to the url:
> 
> hl=true&hl.fl=xhtml
> 
> http://wiki.apache.org/solr/HighlightingParameters
> 
> 
> 
>> -----Original Message-
>> From: Bertrand DUMAS-PILHOU [mailto:bdum...@eurocortex.fr]
>> Sent: Wednesday, April 22, 2009 4:43 PM
>> To: solr-user@lucene.apache.org
>> Subject: Highlight question
>>
>>
>> Hi everybody,
>>
>> I have an schema seems like this in SOLR:
>> title, type:string , indexed not stored
>> body, type:string, stemmed, indexed not stored
>> xhtml, type:string, not indexed, stored
>>
>> When user make an search on field title, body or both, I want to
>> highlight
>> the match string in the xhtml field only.
>>
>> How I can do this ?
>>
>> Thanks and sorry for my english.
>> --
>> View this message in context: http://www.nabble.com/Highlight-question-
>> tp23175851p23175851.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Highlight-question-tp23175851p23198244.html
Sent from the Solr - User mailing list archive at Nabble.com.



Highlight question

2009-04-22 Thread Bertrand DUMAS-PILHOU

Hi everybody,

I have an schema seems like this in SOLR:
title, type:string , indexed not stored
body, type:string, stemmed, indexed not stored
xhtml, type:string, not indexed, stored

When user make an search on field title, body or both, I want to highlight
the match string in the xhtml field only.

How I can do this ?

Thanks and sorry for my english.
-- 
View this message in context: 
http://www.nabble.com/Highlight-question-tp23175851p23175851.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Stemmer vs. exact match

2008-12-07 Thread Bertrand DUMAS-PILHOU

Hi, I have the same reflexion actually.
If you add an another field for exact search, and the end cannot type a
search like : 
"convertible" +house
Because in this sample, for 'convertible' the user want an exact search but
not for 'house'.

And I don't want to develop an new parser for query.

I think, the solution is to add something in the stemmer analyser to store
exact word too, and a parser that don't stem expression in quote.

Is it a possible way ?
 

Grant Ingersoll-6 wrote:
> 
> 
> On Dec 4, 2008, at 8:19 PM, Jonathan Ariel wrote:
> 
>> Hi! I'm wondering what solr is really doing with the exact word vs.  
>> the
>> stemmed word.
>> So for example I have 2 documents.
>> The first one has in the title the word "convertible"
>> The second one has "convert"
>> When solr stem the titles, both will be the same since convertible ->
>> convert.
>>
>> Then when I search "convertible" both documents seems to have the same
>> relevancy... is that right or Solr keeps track of the original word  
>> and
>> gives extra score to the fact that I am actually looking for the  
>> same exact
>> word that I have in a document... I might be wrong, but it seems to  
>> me that
>> it should score that better.
> 
> 
> Solr doesn't keep track of the original word, unless you tell it to.   
> So, if you are stemming, then you are losing the original word.  A  
> common way to solve what you are doing is to actually have two fields,  
> where one is stemmed and one is exact (you can do this with the  
>  mechanism in the Schema).   Thus, if you want exact  
> match, you search the exact match field, otherwise you search the  
> stemmed field.
> 
> -Grant
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Stemmer-vs.-exact-match-tp20846069p20885740.html
Sent from the Solr - User mailing list archive at Nabble.com.