Is there the possibility of perform 'exact search' in a payload field?

I'have to index text with auxiliary info for each word. In particular at
each word is associated the bounding box containing it in the original pdf
page (it is used for highligthing the search terms in the pdf). I used the
payload to store that information.

In the schema.xml, the fieldType definition is:

-------------------------------
<fieldtype name="wppayloads" stored="false" indexed="true"
class="solr.TextField" >
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
generateNumberParts="1"
                         catenateWords="1" catenateNumbers="1"
catenateAll="0" splitOnCaseChange="1"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="identity"/>
</analyzer>
</fieldtype>
-------------------------------

while the field definition is:

-------------------------------
<field name="words" type="wppayloads" indexed="true" stored="true"
required="true" multiValued="true"/>
-------------------------------

When indexing, the field 'words' contains a list of word|box as in the
following example:

-------------------------------
doc_id=example
words={Fonte:|307.62,948.16,324.62,954.25 Comune|326.29,948.16,349.07,954.25
di|350.74,948.16,355.62,954.25 Bologna|358.95,948.16,381.28,954.25}
-------------------------------

Such solution works well except in the case of an exact search. For example,
assuming the only indexed doc is the 'example' doc (before shown), the query
words:"Comune di Bologna" returns no results.

Someone know if there is the possibility of perform 'exact search' in a
payload field?

Thanks in advance,
Leonardo


--
View this message in context: 
http://lucene.472066.n3.nabble.com/payload-and-exact-match-tp3745369p3745369.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to