lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SolrLover <bbar...@gmail.com>
Subject Re: Exact Search Problem
Date Fri, 26 Jul 2013 17:52:47 GMT
May be this wont work, but just a thought...Cant you use
PathHierarchyTokenizerFactory and configure as below?

In this example however we see the oposite configuration, so that a query
for Books/NonFic/Science/Physics would match documents containing
Books/NonFic, Books/NonFic/Science, or Books/NonFic/Science/Physics, but not
Books/NonFic/Science/Physics/Theory or Books/NonFic/Law.

 <fieldType name="descendent_path" class="solr.TextField">
   <analyzer type="index">
     <tokenizer class="solr.KeywordTokenizerFactory" />
   </analyzer>
   <analyzer type="query">
     <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
   </analyzer>
 </fieldType>



--
View this message in context: http://lucene.472066.n3.nabble.com/Exact-Search-Problem-tp4080669p4080676.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message