Lucene index mapping with xml structure -
i new in lucene. want implement lucene search in application when trying indexing in following xml file, getting wrong set of results, in application there several xml files present such as
<category s="mammals"> <sub p="dolphin"/> <sub p="bat"/> <sub p="wales"/> <sub p="human"/> <sub p="dog"/> <sub p="cat"/> </category> <category s="birds"> <sub p="spparrow"/> <sub p="crow"/> <sub p="pengvins"/> <sub p="peacock"/> </category>
when finished indexing on above xml code , start testing searching getting wrong result when trying search category "mammals" , sub category "crow" getting result category "mammals" , sub category "crow" not want such result, in case want result category "mammals" not contain sub category "crow". in short want apply condition how make lucene index map database structure getting correct structure
Comments
Post a Comment