Function query result as a filter query

2009-09-22 Thread Pete Smith
Hi, Is it possible to constrain a resultset using a filter query to only return the top 100 documents for a particular field? Say I have a field called 'hits' that has the total number of hits for that item. I want to return only the documents that have the top 100 highest hits. I want

Using a function in a filter query

2009-04-20 Thread Pete Smith
(rating):[0 TO 500] But that does not seem possible. Does anyone know what else I could do? -- Pete Smith Senior Developer No.9 | 6 Portal Way | London | W3 6RU | T: +44 (0)20 8896 8070 | F: +44 (0)20 8896 8111 LOVEFiLM.com

using NGramTokenizerFactory for partial matching

2009-04-07 Thread Pete Smith
=solr.LowerCaseFilterFactory/ /analyzer /fieldType field name=title_partial type=text_substring indexed=true stored=true required=true / I believe it is due to the mingramsize setting and that is applying to each word. Can anyone tell me how I can support what I want to do? Cheers, Pete -- Pete Smith Developer

RE: How to correctly boost results in Solr Dismax query

2009-03-16 Thread Pete Smith
like bq=media:DVD^2bq=media:BLU-RAY^1.5 more effective. -- Dean -Original Message- From: Pete Smith [mailto:pete.sm...@lovefilm.com] Sent: 13/03/2009 7:11 PM To: solr-user@lucene.apache.org Subject: Re: How to correctly boost results in Solr Dismax query Hi, On Fri, 2009-03

Re: How to correctly boost results in Solr Dismax query

2009-03-13 Thread Pete Smith
where the actual *contents* of the media field would determine the boost. Sorry if I have misunderstood what you mean. Cheers, Pete Pete Smith-3 wrote: Hi, I have managed to build an index in Solr which I can search on keyword, produce facets, query facets etc. This is all working

Re: How to correctly boost results in Solr Dismax query

2009-03-13 Thread Pete Smith
=Indiana Values for qf parameters str name=qfmedia^2.0 films^1.0/str Now, search for q=Indiana .. it should display both of the records but record #2 will display above than the 1st. Let me know if you still have questions. Cheers, amit Pete Smith-3 wrote: Hi Amit, Thanks

Re: How to correctly boost results in Solr Dismax query

2009-03-13 Thread Pete Smith
title^100.0/str But with that, how will it know to rank media:DVD higher than media:BLU-RAY? Cheers, Pete Pete Smith-3 wrote: Hi Amit, Thanks again for your reply. I am understanding it a bit better but I think it would help if I posted an example. Say I have three records: doc

How to correctly boost results in Solr Dismax query

2009-03-12 Thread Pete Smith
affected in their score. In the end it all seems to even out and my score is as it was before i started boosting. I must be doing this wrong and I wonder whether boost function comes in somewhere. Any ideas on how to correctly use boost? Cheers, Pete -- Pete Smith Developer No.9 | 6 Portal Way