New issue 37 by brunovia...@gmail.com: FieldMappings is generating wrong
prefixes
http://code.google.com/p/xappy/issues/detail?id=37
FieldMappings._genPrefix method generates prefixes that are wrong. At least
in two places (SearchConnection._get_prefix_from_term and
highlight.Highlighter._strip_prefix) it is said that:
"Prefixes are any initial capital letters, with the exception that R always
ends a prefix, even if followed by capital letters."
The prefixes created by FieldMappings._genPrefix doesn't follow this rule.
This problem can cause wrong terms to be used in facet suggestion and wrong
results.
The patch attached makes sure that the prefixes returned by
FieldMappings._genPrefix are always correct (doesn't have 'R' in its
middle).
Attachments:
fieldmappings.diff 2.7 KB