Re: Scoring for specific field queries

2009-10-12 Thread R. Tan
Avlesh, I got it, finally, by doing an OR between the two fields, one with an exact match keyword and the other is grouped. q=suggestion:"formula xxx" OR tokenized_suggestion:(formula ) Thanks for all your help! Rih On Fri, Oct 9, 2009 at 4:26 PM, R. Tan wrote: > I ended up with the sam

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
ilters at all. >> > > > > > > > >> > > I am in a mad rush right now, but on the face of it >> your >> > > > field >> > > > > > > > >> > definitions >> > > > > > > > >> > > look right. >> > > > > > > > >> > > >> > > > > > > > >> > > This is what I asked for - >> > > > > > > > >> > > q=(autoComplete2:cha^10 autoComplete:cha) >> > > > > > > > >> > > >> > > > > > > > >> > > Lemme know if this does not work for you. >> > > > > > > > >> > > >> > > > > > > > >> > > Cheers >> > > > > > > > >> > > Avlesh >> > > > > > > > >> > > >> > > > > > > > >> > > On Thu, Oct 8, 2009 at 4:58 PM, R. Tan < >> > > > tanrihae...@gmail.com >> > > > > > >> > > > > > > > wrote: >> > > > > > > > >> > > >> > > > > > > > >> > > > Hi Avlesh, >> > > > > > > > >> > > > >> > > > > > > > >> > > > I can't seem to get the scores right. >> > > > > > > > >> > > > >> > > > > > > > >> > > > I now have these types for the fields I'm >> targeting, >> > > > > > > > >> > > > >> > > > > > > > >> > > > > class="solr.TextField" >> > > > > > > > >> > > > positionIncrementGap="1"> >> > > > > > > > >> > > > >> > > > > > > > >> > > >> > > > class="solr.WhitespaceTokenizerFactory"/> >> > > > > > > > >> > > >> /> >> > > > > > > > >> > > >> > > > > minGramSize="1" >> > > > > > > > >> > > > maxGramSize="20"/> >> > > > > > > > >> > > > >> > > > > > > > >> > > > >> > > > > > > > >> > > >> > > > class="solr.WhitespaceTokenizerFactory"/> >> > > > > > > > >> > > >> /> >> > > > > > > > >> > > > >> > > > > > > > >> > > > >> > > > > > > > >> > > >> > > class="solr.TextField" >> > > > > > > > >> > > > positionIncrementGap="1"> >> > > > > > > > >> > > > >> > > > > > > > >> > > >> > class="solr.KeywordTokenizerFactory"/> >> > > > > > > > >> > > >> /> >> > > > > > > > >> > > >> > > > > minGramSize="1" >> > > > > > > > >> > > > maxGramSize="20"/> >> > > > > > > > >> > > > >> > > > > > > > >> > > > >> > > > > > > > >> > > >> > class="solr.KeywordTokenizerFactory"/> >> > > > > > > > >> > > >> /> >> > > > > > > > >> > > > >> > > > > > > > >> > > > >> > > > > > > > >> > > > >> > > > > > > > >> > > > My query is this, >> > > > > > > > >> > > > >> > > > > > > > >> > > > >> > > > > > > > >> > > >> > > > > > > > >> > >> > > > > > > > >> >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> q=*:*&fq=autoCompleteHelper:cha+autoCompleteHelper2:cha&qf=autoCompleteHelper^10.0+autoCompleteHelper2^1.0 >> > > > > > > > >> > > > >> > > > > > > > >> > > > What should I tweak from the above config and >> query? >> > > > > > > > >> > > > >> > > > > > > > >> > > > Thanks, >> > > > > > > > >> > > > Rih >> > > > > > > > >> > > > >> > > > > > > > >> > > > >> > > > > > > > >> > > > On Thu, Oct 8, 2009 at 4:38 PM, R. Tan < >> > > > > tanrihae...@gmail.com >> > > > > > > >> > > > > > > > >> wrote: >> > > > > > > > >> > > > >> > > > > > > > >> > > > > I will have to pass on this and try your >> suggestion >> > > > first. >> > > > > > So, >> > > > > > > > how >> > > > > > > > >> > does >> > > > > > > > >> > > > > your suggestion (1 and 2) boost the my startswith >> > > query? >> > > > > Is >> > > > > > it >> > > > > > > > >> > because >> > > > > > > > >> > > of >> > > > > > > > >> > > > > the n-gram filter? >> > > > > > > > >> > > > > >> > > > > > > > >> > > > > >> > > > > > > > >> > > > > >> > > > > > > > >> > > > > On Thu, Oct 8, 2009 at 2:27 PM, Sandeep Tagore < >> > > > > > > > >> > > sandeep.tag...@gmail.com >> > > > > > > > >> > > > >wrote: >> > > > > > > > >> > > > > >> > > > > > > > >> > > > >> >> > > > > > > > >> > > > >> Yes it can be done but it needs some >> customization. >> > > > > Search >> > > > > > > for >> > > > > > > > >> > custom >> > > > > > > > >> > > > sort >> > > > > > > > >> > > > >> implementations/discussions. >> > > > > > > > >> > > > >> You can check... >> > > > > > > > >> > > > >> >> > > > > > > > >> > > > >> >> > > > > > > > >> > > > >> > > > > > > > >> > > >> > > > > > > > >> > >> > > > > > > > >> >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> http://lucene.apache.org/solr/api/org/apache/solr/schema/RandomSortField.html >> > > > > > > > >> > > > >> . >> > > > > > > > >> > > > >> Let us know if you have any issues. >> > > > > > > > >> > > > >> >> > > > > > > > >> > > > >> Sandeep >> > > > > > > > >> > > > >> >> > > > > > > > >> > > > >> >> > > > > > > > >> > > > >> R. Tan wrote: >> > > > > > > > >> > > > >> > >> > > > > > > > >> > > > >> > This might work and I also have a single value >> > > field >> > > > > > which >> > > > > > > > >> makes >> > > > > > > > >> > it >> > > > > > > > >> > > > >> > cleaner. >> > > > > > > > >> > > > >> > Can sort be customized (with indexOf()) from >> the >> > > solr >> > > > > > > > >> parameters >> > > > > > > > >> > > > alone? >> > > > > > > > >> > > > >> > >> > > > > > > > >> > > > >> >> > > > > > > > >> > > > >> -- >> > > > > > > > >> > > > >> View this message in context: >> > > > > > > > >> > > > >> >> > > > > > > > >> > > > >> > > > > > > > >> > > >> > > > > > > > >> > >> > > > > > > > >> >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> http://www.nabble.com/Scoring-for-specific-field-queries-tp25798390p25799055.html >> > > > > > > > >> > > > >> Sent from the Solr - User mailing list archive >> at >> > > > > > Nabble.com. >> > > > > > > > >> > > > >> >> > > > > > > > >> > > > >> >> > > > > > > > >> > > > > >> > > > > > > > >> > > > >> > > > > > > > >> > > >> > > > > > > > >> > >> > > > > > > > >> >> > > > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> > >

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
gt; > > Lemme know if this does not work for you. > > > > > > > > >> > > > > > > > > > > >> > > Cheers > > > > > > > > >> > > Avlesh > > > > > > > > >> > > > > > > > > > > >

Re: Scoring for specific field queries

2009-10-09 Thread Avlesh Singh
t; > > > > > > > wrote: > > > > > > > >> > > > > > > > > > >> > > > Hi Avlesh, > > > > > > > >> > > > > > > > > > > >> > > > I can't seem to get the scores right. > > > > > > > >> > > > > > > > > > > >> > > > I now have these types for the fields I'm targeting, > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > >> > > > positionIncrementGap="1"> > > > > > > > >> > > > > > > > > > > >> > > > > > class="solr.WhitespaceTokenizerFactory"/> > > > > > > > >> > > > > > > > > > > >> > > > > > > minGramSize="1" > > > > > > > >> > > > maxGramSize="20"/> > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > > class="solr.WhitespaceTokenizerFactory"/> > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > class="solr.TextField" > > > > > > > >> > > > positionIncrementGap="1"> > > > > > > > >> > > > > > > > > > > >> > > > class="solr.KeywordTokenizerFactory"/> > > > > > > > >> > > > > > > > > > > >> > > > > > > minGramSize="1" > > > > > > > >> > > > maxGramSize="20"/> > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > class="solr.KeywordTokenizerFactory"/> > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > My query is this, > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > q=*:*&fq=autoCompleteHelper:cha+autoCompleteHelper2:cha&qf=autoCompleteHelper^10.0+autoCompleteHelper2^1.0 > > > > > > > >> > > > > > > > > > > >> > > > What should I tweak from the above config and query? > > > > > > > >> > > > > > > > > > > >> > > > Thanks, > > > > > > > >> > > > Rih > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > On Thu, Oct 8, 2009 at 4:38 PM, R. Tan < > > > > tanrihae...@gmail.com > > > > > > > > > > > > > >> wrote: > > > > > > > >> > > > > > > > > > > >> > > > > I will have to pass on this and try your suggestion > > > first. > > > > > So, > > > > > > > how > > > > > > > >> > does > > > > > > > >> > > > > your suggestion (1 and 2) boost the my startswith > > query? > > > > Is > > > > > it > > > > > > > >> > because > > > > > > > >> > > of > > > > > > > >> > > > > the n-gram filter? > > > > > > > >> > > > > > > > > > > > >> > > > > > > > > > > > >> > > > > > > > > > > > >> > > > > On Thu, Oct 8, 2009 at 2:27 PM, Sandeep Tagore < > > > > > > > >> > > sandeep.tag...@gmail.com > > > > > > > >> > > > >wrote: > > > > > > > >> > > > > > > > > > > > >> > > > >> > > > > > > > >> > > > >> Yes it can be done but it needs some customization. > > > > Search > > > > > > for > > > > > > > >> > custom > > > > > > > >> > > > sort > > > > > > > >> > > > >> implementations/discussions. > > > > > > > >> > > > >> You can check... > > > > > > > >> > > > >> > > > > > > > >> > > > >> > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://lucene.apache.org/solr/api/org/apache/solr/schema/RandomSortField.html > > > > > > > >> > > > >> . > > > > > > > >> > > > >> Let us know if you have any issues. > > > > > > > >> > > > >> > > > > > > > >> > > > >> Sandeep > > > > > > > >> > > > >> > > > > > > > >> > > > >> > > > > > > > >> > > > >> R. Tan wrote: > > > > > > > >> > > > >> > > > > > > > > >> > > > >> > This might work and I also have a single value > > field > > > > > which > > > > > > > >> makes > > > > > > > >> > it > > > > > > > >> > > > >> > cleaner. > > > > > > > >> > > > >> > Can sort be customized (with indexOf()) from the > > solr > > > > > > > >> parameters > > > > > > > >> > > > alone? > > > > > > > >> > > > >> > > > > > > > > >> > > > >> > > > > > > > >> > > > >> -- > > > > > > > >> > > > >> View this message in context: > > > > > > > >> > > > >> > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://www.nabble.com/Scoring-for-specific-field-queries-tp25798390p25799055.html > > > > > > > >> > > > >> Sent from the Solr - User mailing list archive at > > > > > Nabble.com. > > > > > > > >> > > > >> > > > > > > > >> > > > >> > > > > > > > >> > > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
; > > > > > > > > >> > > > positionIncrementGap="1"> > > > > > > >> > > > > > > > > > >> > > > > class="solr.WhitespaceTokenizerFactory"/> > > > > > > >> > > > > > > > > > >> > > > > > minGramSize="1" > > > > > > >> > > > maxGramSize="20"/> > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > class="solr.WhitespaceTokenizerFactory"/> > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > class="solr.TextField" > > > > > > >> > > > positionIncrementGap="1"> > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > minGramSize="1" > > > > > > >> > > > maxGramSize="20"/> > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > My query is this, > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > q=*:*&fq=autoCompleteHelper:cha+autoCompleteHelper2:cha&qf=autoCompleteHelper^10.0+autoCompleteHelper2^1.0 > > > > > > >> > > > > > > > > > >> > > > What should I tweak from the above config and query? > > > > > > >> > > > > > > > > > >> > > > Thanks, > > > > > > >> > > > Rih > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > On Thu, Oct 8, 2009 at 4:38 PM, R. Tan < > > > tanrihae...@gmail.com > > > > > > > > > > > >> wrote: > > > > > > >> > > > > > > > > > >> > > > > I will have to pass on this and try your suggestion > > first. > > > > So, > > > > > > how > > > > > > >> > does > > > > > > >> > > > > your suggestion (1 and 2) boost the my startswith > query? > > > Is > > > > it > > > > > > >> > because > > > > > > >> > > of > > > > > > >> > > > > the n-gram filter? > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > On Thu, Oct 8, 2009 at 2:27 PM, Sandeep Tagore < > > > > > > >> > > sandeep.tag...@gmail.com > > > > > > >> > > > >wrote: > > > > > > >> > > > > > > > > > > >> > > > >> > > > > > > >> > > > >> Yes it can be done but it needs some customization. > > > Search > > > > > for > > > > > > >> > custom > > > > > > >> > > > sort > > > > > > >> > > > >> implementations/discussions. > > > > > > >> > > > >> You can check... > > > > > > >> > > > >> > > > > > > >> > > > >> > > > > > > >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > http://lucene.apache.org/solr/api/org/apache/solr/schema/RandomSortField.html > > > > > > >> > > > >> . > > > > > > >> > > > >> Let us know if you have any issues. > > > > > > >> > > > >> > > > > > > >> > > > >> Sandeep > > > > > > >> > > > >> > > > > > > >> > > > >> > > > > > > >> > > > >> R. Tan wrote: > > > > > > >> > > > >> > > > > > > > >> > > > >> > This might work and I also have a single value > field > > > > which > > > > > > >> makes > > > > > > >> > it > > > > > > >> > > > >> > cleaner. > > > > > > >> > > > >> > Can sort be customized (with indexOf()) from the > solr > > > > > > >> parameters > > > > > > >> > > > alone? > > > > > > >> > > > >> > > > > > > > >> > > > >> > > > > > > >> > > > >> -- > > > > > > >> > > > >> View this message in context: > > > > > > >> > > > >> > > > > > > >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > http://www.nabble.com/Scoring-for-specific-field-queries-tp25798390p25799055.html > > > > > > >> > > > >> Sent from the Solr - User mailing list archive at > > > > Nabble.com. > > > > > > >> > > > >> > > > > > > >> > > > >> > > > > > > >> > > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

Re: Scoring for specific field queries

2009-10-09 Thread Avlesh Singh
amSize="1" > > > > > >> > > > maxGramSize="20"/> > > > > > >> > > > > > > > > >> > > > > > > > > >> > > > class="solr.WhitespaceTokenizerFactory"/>

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
> > > >> > > > > > > > >> > > > > > > > >> > > > > > > >> > > > positionIncrementGap="1"> > > > > >> > > > > > > > >> > > > > > > > >&g

Re: Scoring for specific field queries

2009-10-09 Thread Avlesh Singh
gt; >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > >> > > > maxGramSize="20"/> > > > >> > > > > > >

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
> > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > My query is this, &g

Re: Scoring for specific field queries

2009-10-09 Thread Avlesh Singh
; > > > > >> > > > What should I tweak from the above config and query? > >> > > > > >> > > > Thanks, > >> > > > Rih > >> > > > > >> > > > > >> > > > On Thu, Oct 8, 2009 at 4:38 PM, R. Tan > >> wrote: > >> > > > > >> > > > > I will have to pass on this and try your suggestion first. So, > how > >> > does > >> > > > > your suggestion (1 and 2) boost the my startswith query? Is it > >> > because > >> > > of > >> > > > > the n-gram filter? > >> > > > > > >> > > > > > >> > > > > > >> > > > > On Thu, Oct 8, 2009 at 2:27 PM, Sandeep Tagore < > >> > > sandeep.tag...@gmail.com > >> > > > >wrote: > >> > > > > > >> > > > >> > >> > > > >> Yes it can be done but it needs some customization. Search for > >> > custom > >> > > > sort > >> > > > >> implementations/discussions. > >> > > > >> You can check... > >> > > > >> > >> > > > >> > >> > > > > >> > > > >> > > >> > http://lucene.apache.org/solr/api/org/apache/solr/schema/RandomSortField.html > >> > > > >> . > >> > > > >> Let us know if you have any issues. > >> > > > >> > >> > > > >> Sandeep > >> > > > >> > >> > > > >> > >> > > > >> R. Tan wrote: > >> > > > >> > > >> > > > >> > This might work and I also have a single value field which > >> makes > >> > it > >> > > > >> > cleaner. > >> > > > >> > Can sort be customized (with indexOf()) from the solr > >> parameters > >> > > > alone? > >> > > > >> > > >> > > > >> > >> > > > >> -- > >> > > > >> View this message in context: > >> > > > >> > >> > > > > >> > > > >> > > >> > http://www.nabble.com/Scoring-for-specific-field-queries-tp25798390p25799055.html > >> > > > >> Sent from the Solr - User mailing list archive at Nabble.com. > >> > > > >> > >> > > > >> > >> > > > > > >> > > > > >> > > > >> > > >> > > > > >

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
gt; On Thu, Oct 8, 2009 at 4:38 PM, R. Tan >> wrote: >> > > > >> > > > > I will have to pass on this and try your suggestion first. So, how >> > does >> > > > > your suggestion (1 and 2) boost the my startswith query? Is it >> > because >> > > of >> > > > > the n-gram filter? >> > > > > >> > > > > >> > > > > >> > > > > On Thu, Oct 8, 2009 at 2:27 PM, Sandeep Tagore < >> > > sandeep.tag...@gmail.com >> > > > >wrote: >> > > > > >> > > > >> >> > > > >> Yes it can be done but it needs some customization. Search for >> > custom >> > > > sort >> > > > >> implementations/discussions. >> > > > >> You can check... >> > > > >> >> > > > >> >> > > > >> > > >> > >> http://lucene.apache.org/solr/api/org/apache/solr/schema/RandomSortField.html >> > > > >> . >> > > > >> Let us know if you have any issues. >> > > > >> >> > > > >> Sandeep >> > > > >> >> > > > >> >> > > > >> R. Tan wrote: >> > > > >> > >> > > > >> > This might work and I also have a single value field which >> makes >> > it >> > > > >> > cleaner. >> > > > >> > Can sort be customized (with indexOf()) from the solr >> parameters >> > > > alone? >> > > > >> > >> > > > >> >> > > > >> -- >> > > > >> View this message in context: >> > > > >> >> > > > >> > > >> > >> http://www.nabble.com/Scoring-for-specific-field-queries-tp25798390p25799055.html >> > > > >> Sent from the Solr - User mailing list archive at Nabble.com. >> > > > >> >> > > > >> >> > > > > >> > > > >> > > >> > >> > >

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
gt; > > > your suggestion (1 and 2) boost the my startswith query? Is it > > because > > > of > > > > > the n-gram filter? > > > > > > > > > > > > > > > > > > > > On Thu, Oct 8, 2009 at 2:27 PM, Sandeep

Re: Scoring for specific field queries

2009-10-08 Thread Avlesh Singh
? > > > > > > > > > > > > > > > > On Thu, Oct 8, 2009 at 2:27 PM, Sandeep Tagore < > > sandeep.tag...@gmail.com > > > >wrote: > > > > > > > >> > > > >> Yes it can be done but it needs some

Re: Scoring for specific field queries

2009-10-08 Thread R. Tan
es it can be done but it needs some customization. Search for custom > > sort > > >> implementations/discussions. > > >> You can check... > > >> > > >> > > > http://lucene.apache.org/solr/api/org/apache/solr/schema/RandomSortField.html > > >> . > > >> Let us know if you have any issues. > > >> > > >> Sandeep > > >> > > >> > > >> R. Tan wrote: > > >> > > > >> > This might work and I also have a single value field which makes it > > >> > cleaner. > > >> > Can sort be customized (with indexOf()) from the solr parameters > > alone? > > >> > > > >> > > >> -- > > >> View this message in context: > > >> > > > http://www.nabble.com/Scoring-for-specific-field-queries-tp25798390p25799055.html > > >> Sent from the Solr - User mailing list archive at Nabble.com. > > >> > > >> > > > > > >

Re: Scoring for specific field queries

2009-10-08 Thread Avlesh Singh
know if you have any issues. > >> > >> Sandeep > >> > >> > >> R. Tan wrote: > >> > > >> > This might work and I also have a single value field which makes it > >> > cleaner. > >> > Can sort be customized (with indexOf()) from the solr parameters > alone? > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Scoring-for-specific-field-queries-tp25798390p25799055.html > >> Sent from the Solr - User mailing list archive at Nabble.com. > >> > >> > > >

Re: Scoring for specific field queries

2009-10-08 Thread R. Tan
This might work and I also have a single value field which makes it >> > cleaner. >> > Can sort be customized (with indexOf()) from the solr parameters alone? >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Scoring-for-specific-field-queries-tp25798390p25799055.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> >

Re: Scoring for specific field queries

2009-10-08 Thread R. Tan
ave a single value field which makes it > > cleaner. > > Can sort be customized (with indexOf()) from the solr parameters alone? > > > > -- > View this message in context: > http://www.nabble.com/Scoring-for-specific-field-queries-tp25798390p25799055.html > Sent from the Solr - User mailing list archive at Nabble.com. > >

Re: Scoring for specific field queries

2009-10-07 Thread Sandeep Tagore
o have a single value field which makes it > cleaner. > Can sort be customized (with indexOf()) from the solr parameters alone? > -- View this message in context: http://www.nabble.com/Scoring-for-specific-field-queries-tp25798390p25799055.html Sent from the Solr - User mailing

Re: Scoring for specific field queries

2009-10-07 Thread Sandeep Tagore
distance which user requests for. Please tell me your thoughts and correct me if I am wrong. Thanks, Sandeep -- View this message in context: http://www.nabble.com/Scoring-for-specific-field-queries-tp25798390p25798925.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Scoring for specific field queries

2009-10-07 Thread R. Tan
> > R. Tan wrote: > > > > Hi, > > How can I get wildcard search (e.g. cha*) to score documents based on the > > position of the keyword in a field? Closer (to the start) means higher > > score. > > > > -- > View this message in context: > http:

Re: Scoring for specific field queries

2009-10-07 Thread R. Tan
I will try this out. How does 1 and 2 boost the my startswith query? Is it because of the n-gram filter? On Thu, Oct 8, 2009 at 1:29 PM, Avlesh Singh wrote: > You would need to boost your "startswith" matches artificially for the > desired behavior. > I would do it this way - > > 1. Create a

Re: Scoring for specific field queries

2009-10-07 Thread Avlesh Singh
in a field? Closer (to the start) means higher > > score. > > > > -- > View this message in context: > http://www.nabble.com/Scoring-for-specific-field-queries-tp25798390p25798657.html > Sent from the Solr - User mailing list archive at Nabble.com. > >

Re: Scoring for specific field queries

2009-10-07 Thread Sandeep Tagore
come first. Regards, Sandeep R. Tan wrote: > > Hi, > How can I get wildcard search (e.g. cha*) to score documents based on the > position of the keyword in a field? Closer (to the start) means higher > score. > -- View this message in context: http://www.nabble.com/Sco

Re: Scoring for specific field queries

2009-10-07 Thread Avlesh Singh
You would need to boost your "startswith" matches artificially for the desired behavior. I would do it this way - 1. Create a KeywordTokenized field with n-gram filter. 2. Create a Whitespace tokenized field with n-gram flter. 3. Search on both the fields, boost matches for #1 over #2. H

Scoring for specific field queries

2009-10-07 Thread R. Tan
Hi, How can I get wildcard search (e.g. cha*) to score documents based on the position of the keyword in a field? Closer (to the start) means higher score. For example, I have multiple documents with titles containing the word "champion". Some of the document titles start with the word "champion"