Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-730
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Shay Banon
Reporter: Stefan Fussenegger
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Suggestions for alias field

Created: 07/Oct/08 02:38 AM   Updated: 07/Oct/08 02:38 AM
Component/s: Compass::Core
Affects Version/s: 2.0.2
Fix Version/s: None

 Description  « Hide
Original post from forum [0]:

"I found out that compass does a dictionary lookup for alias fields in a query, hence a query for "foo (alias:bar)" could suggest "foo (alias:baz)". To me, this doesn't make sense, as bar isn't ever meant to be added to the dictionary. I'd suggest to add

if ("alias".equals(term.field())) return term;

to the QueryTermVisitor in DefaultLuceneSpellCheckManager.suggest(CompassQuery) (sorry, can't provide a patch right now)"

The solution might not be as trivial as expected though. As a workaround, one could make sure that all used aliases are in the dictionary.


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.