Retrieve term payloads / custom PayloadFilter

2010-07-08 Thread Bernhard Haslhofer
Hi, in my application I have documents that may contain terms and term translations in multiple languages. The language tag of each term is explicitly given and should be available in the index in order to enable queries for documents that contain a certain term (optionally in a given language)

Re: Retrieve term payloads / custom PayloadFilter

2010-07-08 Thread Erick Erickson
If you know this at index time, could you index language-specific fields? i.e. text_en, text_de, title_en, title_de etc? Perhaps you could have a catch-all that contained everything too. Then your searching would be on a per field_lang basis. PerFieldAnalyzerWrapper would automatically use the pro