I am definitely missing something here. Do you want to fetch a document if one of its field contains "ab" given a search term "abc"? If you can design a field and query your index so that you can fetch such a document, Lucene (and hence Solr) would automagically give you the relevance score.
Cheers Avlesh On Mon, Aug 17, 2009 at 2:16 PM, Sushan Rungta <s...@clickindia.com> wrote: > This doesnot solve my purpose, as my requirement is different. Kindly check > the document "d", > which I have mentioned & the computation of score for that kind of document > will be different. > > Hence, some sort of different query will be applied, which I am unable to > ascertain. > > Regards, > > Sushan Rungta > > > At 12:44 PM 8/17/2009, Avlesh Singh wrote: > >> Why not stick to lucene score for each document then building your own? >> The >> easiest way of getting the relevance score for each document is to add the >> "debugQuery=true" parameter to your request handler. >> >> Cheers >> Avlesh >> >> On Mon, Aug 17, 2009 at 12:32 PM, Sushan Rungta <s...@clickindia.com> >> wrote: >> >> > Kindly guide me that how shall I configure solr lucene with the below >> kind >> > of requirements: >> > >> > The query is "abc" >> > >> > Documents are: >> > >> > a) abc >> > b) abcd >> > c) xyz ab c mno >> > d) ab >> > >> > I require the score for each of the above mentioned documents with the >> > above mentioned query to be displayed as: >> > >> > For document (a) 100% (Computation: abc/abc) >> > For document (b) 75% (Computation: abc/abcd) >> > For document (c) 33% (Computation: abc/xyz ab c mno) >> > For document (d) 75% (Computation: abc/ab, where document is found >> with >> > complete match) >> > >> > regards, >> > >> > Sushan Rungta >> > >> > >> > > >