> If I need to override the QueryParser > to return PayloadTermQuery, what > function for PayloadFunction should I use in the > constructor (If you can > show me an example).
I am not sure about that. Maybe custom one. > In your code I didn't see an indexer, will this work with > the regular > IndexWriter but with the new Analyzer that you overloaded No, at index time [IndexWriter] you are going to use a new analyzer that uses WhitespaceTokenizer + TermPositionPayloadTokenFilter. PayloadAnalyzer will be used at query time. [QueryParser] You need to setSimilarity(new CustomSimilarity) of both indexer and searcher. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org