On 1/30/07, Chris Hostetter <[EMAIL PROTECTED]> wrote:
: Is there a way to do truncation with DisMax? : : Just being able to search for (photo*) would be helpful in quite a few : places. I'm afraid i'm not understanding your question ... what do you mean by "truncation" ? ... your example: (photo*) seems to be asking about a prefix or wildcard type search, which might match photomat, photographer, photoaaaaaaaaaaa, etc... is that what you're asking about? there is no way at the moment to do prefix or wildcard searches ... but off the top of my head i think it might be fairly easy - there is a partical escaping that happens to escape all QueryParser meta characters except + and - .. we could probably make that configurable so "*" was left alone as well. ... i think there would need to be some additions to the DisjunctionMaxQueryParser to loop over the aliased fields too though.
A more dismaxy way might be to specify the structure of the query in a different param rather than in the query string. haven't thought it through though... -Yonik