Peter Schäfer (JIRA) wrote:
I'm sure someone mentioned this a while back, but there's a technique that we used for an LDAP server that's applicable here. It's a bit like injecting synonyms: you'd have, say, a SubwordFilter that given "brown" would emit "rown" and "own" at the same position. A "*own" query would then simply drop the leading wildcard and look for the word. We stopped at three letters in the LDAP server. An alternative is to use a ReverseAlternativeFilter (say) that emits "brown" and "nworb" at the same position, but that only deals with prefix or postfix wildcards, but not both.It would be nice to have wildcard queries with a leading wildcard ("?" or "*").I'm aware that this is a well-known issue, and I do understand the reasons behind it, but try explaining that to our end-users ... :-(
I'm not sure how you'd stop "own" matching "brown" though. If someone could come up with some example code I don't suppose I'd be the only one who would be interested!
jch --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
