MoreLikeThis - To many hits

2011-10-25 Thread vraa
Hi

I'm using the MoreLikeThis functionallity 
http://wiki.apache.org/solr/MoreLikeThis
http://wiki.apache.org/solr/MoreLikeThis , and it works almost perfectly for
my situation.

But, i get to many hist, and mayby thats the hole idea of MoreLikeThis, but
im gonna ask anyway. 

My query looks like this:
/select/?q=id:11&mlt=true&mlt.match.include=true&mlt.fl=make,model,variant&mlt.mindf=1&mlt.mintf=1&fl=id,score,make,model,variant
.
The id is a Lamborghini. There are only 8 lamborghinis in my database and
still i get a lot more hits.
Is it possible to make it so Solr only return 8 results in this query? Which
means solr must interpret the query so that there must be a hit on all of
the "mlt.fl". If not, then remove the last of the "mlt.fl (variant)" and try
again. If no hits then remove "model" and so forth.

Does it make sense?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/MoreLikeThis-To-many-hits-tp3450632p3450632.html
Sent from the Solr - User mailing list archive at Nabble.com.


Sort question

2011-11-23 Thread vraa
Hi

I have a query where i sort by a column "price". This field can contain the
following values

10
75000
15
1
225000
50
40

I want to sort these values so that always between 0 and 100 always comes
last.

Eg sorting by price asc should look like this:
75000
10
15
225000
1
40
50

Is this possible?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Sort-question-tp3530070p3530070.html
Sent from the Solr - User mailing list archive at Nabble.com.