Displaying 1 result from an estimated 1 matches for "xthirdlevelus_michigan_grandrapids".
2011 Nov 06
2
What is the best way to represent a category hierarchy using term prefixes in Xapian?
...pids
>>Minneapolis
>>St Paul
>Ohio
>>Columbus
>>Grand Rapids
>>Sandusky
I see two ways that I could index a ?Grand Rapids, Michigan? document with
prefixed terms:
XFIRSTLEVELus
XSECONDLEVELmichigan
XTHIRDLEVELgrandrapids
or
XFIRSTLEVELus
XSECONDLEVELus_michigan
XTHIRDLEVELus_michigan_grandrapids
I?m inclined to use the second approach thinking that it will return more
intuitive results. That is, a search that includes Grand Rapids, Michigan search
criteria is less likely to include documents from Minnesota and Ohio.
However, two aspects of this approach bother me. First, the creation a...