Search Ranking

2012-05-16 Thread Meeraj Kunnumpurath
Hi, I am quite new to Lucene. I am trying to use it to index listings of local businesses. The index has only one field, that stores the attributes of a listing as well as email addresses of users who have rated that business. For example, Listing 1: "XYZ Takeaway London f...@company.com bar...@

Re: Search Ranking

2012-05-16 Thread Meeraj Kunnumpurath
gination.com/content/scaling-lucene-and-solr#d0e63 > > Cheers, > > Ivan > > On Wed, May 16, 2012 at 12:41 PM, Meeraj Kunnumpurath > wrote: > > Hi, > > > > I am quite new to Lucene. I am trying to use it to index listings of > local > > businesses. The

Re: Search Ranking

2012-05-16 Thread Meeraj Kunnumpurath
ecause >> of term frequencies. Which analyzers are you using? >> >> http://www.lucidimagination.com/content/scaling-lucene-and-solr#d0e63 >> >> Cheers, >> >> Ivan >> >> On Wed, May 16, 2012 at 12:41 PM, Meeraj Kunnumpurath >> wrote

Re: Search Ranking

2012-05-16 Thread Meeraj Kunnumpurath
erse order. Regards Meeraj On Wed, May 16, 2012 at 9:48 PM, Meeraj Kunnumpurath < meeraj.kunnumpur...@asyska.com> wrote: > I have tried the same using Lucene directly with the following code, > > import org.apache.lucene.store.RAMDirectory; > import org.apache.lucene.document.Doc

Re: Search Ranking

2012-05-16 Thread Meeraj Kunnumpurath
), product of: 1.4142135 = tf(termFreq(searchText:company.com)=2) 0.5945349 = idf(docFreq=2, maxDocs=2) 0.375 = fieldNorm(field=searchText, doc=0) On Wed, May 16, 2012 at 9:50 PM, Meeraj Kunnumpurath < meeraj.kunnumpur...@asyska.com> wrote: > The actual query is &g

Re: Search Ranking

2012-05-16 Thread Meeraj Kunnumpurath
16, 2012 at 9:52 PM, Meeraj Kunnumpurath < meeraj.kunnumpur...@asyska.com> wrote: > This is the output I get from explaining the plan .. > > > Found 2 hits. > 1. XYZ Takeaway f...@company.com > 0.5148823 = (MATCH) sum of: > 0.17162743 = (MATCH) weight(searchText:takeaway in

Optional Terms

2012-05-16 Thread Meeraj Kunnumpurath
Hi, I have the following documents Document doc1 = new Document(); doc1.add(new Field("searchText", "ABC Takeaway f...@company.com f...@company.com", Field.Store.YES, Field.Index.ANALYZED)); Document doc2 = new Document(); doc2.add(new Field("searchText", "XYZ Takeaway f...@company.com", Field.St

Re: Optional Terms

2012-05-17 Thread Meeraj Kunnumpurath
automatically. See > IndexSearcher.explain() as I think someone already suggested. See > also javadocs for org.apache.lucene.search.Similarity. You can plug > in your own implementation if you want to tweak the scoring. > > > -- > Ian. > > > On Wed, May 16

Boosting numerical field

2012-05-18 Thread Meeraj Kunnumpurath
Hi, Is there anyway in a query, I can boost the relevance of a hit based on the value of a numerical field in the index. i.e higher the value of the field, more relevant the hit is. Kind regards Meeraj - To unsubscribe, e-mail

Re: Boosting numerical field

2012-05-19 Thread Meeraj Kunnumpurath
Thank you Sent from my iPad On 19 May 2012, at 09:07, Ahmet Arslan wrote: > >> Is there anyway in a query, I can boost the relevance of a >> hit based on the value of a numerical field in the index. >> i.e higher the value of the field, more relevant the hit >> is. > > Yes it is possible. Lik

Re: Boosting numerical field

2012-05-19 Thread Meeraj Kunnumpurath
Hi, Is this available only with Solr or would it work if I am using plain Lucene? Regards Meeraj On Sat, May 19, 2012 at 9:07 AM, Ahmet Arslan wrote: > > > Is there anyway in a query, I can boost the relevance of a > > hit based on the value of a numerical field in the index. > > i.e higher th