How to search with single string in a multivalued string field
Hi, I have a field name called, features_mvs. Slim,Compact Large Storage,Efficient I want to search with either of the string, Slim or Compact or Large Storage or Efficient. If i give, select?q=features_mvs:Slim,Compact it is returning, but i want to search like, select?q=features_mvs:Slim How can i do that? How can I do that? -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-search-with-single-string-in-a-multivalued-string-field-tp4022851.html Sent from the Solr - User mailing list archive at Nabble.com.
Boost docs which are posted recently
Hi, I have a doc with the field type_s. The value can be news, photos and videos. The priority will be given in this order, photos, videos then news using the below query, q=sachin&defType=dismax&bq=type_s:photos^10&bq=type_s:videos^7&bq=type_s:news^5 eventhough it is giving more priority to photos, sometimes it needs to display the videos/news if it is posted recently. How can i achieve this? Is it possible to use single bq for multiple field using space or "+"? Thanks, Sangeetha -- View this message in context: http://lucene.472066.n3.nabble.com/Boost-docs-which-are-posted-recently-tp4025955.html Sent from the Solr - User mailing list archive at Nabble.com.
score calculation
I want to know how score is calculated? what is fieldweight, fieldNorm, queryWeight and queryNorm. And what is the formula to get the final score using fieldweight, fieldNorm, queryWeight ,queryNorm, idf and tf. Can anyone explain or provide some links? Thanks, Sangeetha -- View this message in context: http://lucene.472066.n3.nabble.com/score-calculation-tp4026669.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: score calculation
Using Toms reply i have got most of the terms, The following is my understanding of a single doc score, 5.528805 = (MATCH) sum of: (sum of scores = 0.08775589 + 5.441049) 0.08775589 = (MATCH) weight(text:sachin in 286) [DefaultSimilarity], result of: 0.08775589 = score(doc=286,freq=2.0 = termFreq=2.0 ), product of: * ( fieldweight*queryweight)* 0.06781097 = queryWeight, product of: 5.856543 = idf(docFreq=18, maxDocs=2443) 0.011578668 = queryNorm - not used for scoring 1.2941253 = fieldWeight in 286, product of: ( tf*idf*fieldNorm) 1.4142135 = tf(freq=2.0), with freq of: 2.0 = termFreq=2.0 5.856543 = idf(docFreq=18, maxDocs=2443) 0.15625 = fieldNorm(doc=286) 5.441049 = (MATCH) weight(type_s:video^10.0 in 286) [DefaultSimilarity], result of: 5.441049 = score(doc=286,freq=1.0 = termFreq=1.0 ), product of: ( fieldweight*queryweight) 0.793726 = queryWeight, product of: 10.0 = boost 6.855072 = idf(docFreq=6, maxDocs=2443) 0.011578668 = queryNorm 6.855072 = fieldWeight in 286, product of: ( tf*idf*fieldNorm) 1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0 6.855072 = idf(docFreq=6, maxDocs=2443) 1.0 = fieldNorm(doc=286) But still i am not clear of fieldNorm(lenghNorm *boost(index) - how to get boost(index) and how queryWeight is calculated Thanks, Sangeetha -- View this message in context: http://lucene.472066.n3.nabble.com/score-calculation-tp4026669p4026946.html Sent from the Solr - User mailing list archive at Nabble.com.
Searches with phonetics
Hi, I have not done anything in my schema.xml for phonetics search. But it searches and returns *july *when i give *juli*. But i dont want this. How to avoid that? Thanks, Sangeetha -- View this message in context: http://lucene.472066.n3.nabble.com/Searches-with-phonetics-tp4027487.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Searches with phonetics
I have docs which contains the word July. If i search with juli also it return July. I have removed in my schema.xml. Now it return nothing when i search July. It return July only if i give juli. What should i do? I want to search the exact words which are in docs. I need to do auto-suggest also. Thanks, Sangeetha -- View this message in context: http://lucene.472066.n3.nabble.com/Searches-with-phonetics-tp4027487p4027498.html Sent from the Solr - User mailing list archive at Nabble.com.
search with spaces
Hi, I have a text field with value O O Jaane Jaane. When i search with *q=Jaane Jaane* it is giving the results. But if i give *q=O O Jaane Jaane* it is not working? What could be the reason? Thanks, Sangeetha -- View this message in context: http://lucene.472066.n3.nabble.com/search-with-spaces-tp4029265.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: search with spaces
when i gave debugQuery=query, i got the following error, 400 0 query O O Jaane Jaane invalid boolean value: query 400 -- View this message in context: http://lucene.472066.n3.nabble.com/search-with-spaces-tp4029265p4029409.html Sent from the Solr - User mailing list archive at Nabble.com.