Hi Justin, > Unfortunately the suffix requires a wildcard as well in our case. There > are a limited number of prefixes though (10ish), so perhaps we could > combine them all into one query. We'd still need some sort of > InverseWildcardQuery implementation. > > > use another analyzer so you don't need wildcards > > I know analyzers can be used with IndexWriter and with QueryParser. Is > there somewhere an analyzer could be used to alter the field to match the > query at search time instead of altering the query to match the field?
Can you give an example of what you mean? > Our current path to solving our problem requires additional fields which > need rewritten causing a much larger performance degredation. One of the > two paths above would be much more desirable. An inverse query would require rewriting, too, I think. You say you have 10-ish prefixes. Can you turn those prefixes into field names, and index a token like EMPTY when there are no values for a particular prefix? Then your query would be (F1:EMPTY OR F2:EMPTY ... OR F10:EMPTY). Steve