You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by abhayd <aj...@hotmail.com> on 2011/09/26 09:46:52 UTC
external file field partial data match in key field
hi
i have product inventory data in solr index I would like to boost or sort
results by using some popularity.
for instance SOLR index has field named Title. Some docs with tile like
iphone 4 - white
iphone 3 - white
blackberry torch
I would like to boost docs where title contains word "iphone"
can i use partial titles in external file field?
here is schema
-----------------
<fieldType name="titleFile" keyField="title" defVal="0" stored="true"
indexed="true" class="solr.ExternalFileField" valType="pfloat" />
<field name="rank" type="titleFile" indexed="true" stored="true" />
titleFile contains
------------------
iphone=15
blackberry=13
samsung=12
now when results are obtained for search term like "phone" i would like to
show user phones having title
iphone first then , blackberry then samsung
I tried but does not seem to work. Any thoughts?
--
View this message in context: http://lucene.472066.n3.nabble.com/external-file-field-partial-data-match-in-key-field-tp3368547p3368547.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: external file field partial data match in key field
Posted by abhayd <aj...@hotmail.com>.
i found answer to my question ..
basically it works only with complete match..
--
View this message in context: http://lucene.472066.n3.nabble.com/external-file-field-partial-data-match-in-key-field-tp3368547p3371328.html
Sent from the Solr - User mailing list archive at Nabble.com.