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

Key: CMP-925
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Shay Banon
Reporter: Vitali Ryumshyn
Votes: 0
Watchers: 0

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

un_tokenized dynamic-property

Created: 27/Jan/10 06:28 AM   Updated: 27/Jan/10 08:55 AM
Component/s: Compass::Core
Affects Version/s: 2.2.0 GA
Fix Version/s: None

Environment: Java 5.0

 Description  « Hide
we having a problem searching against un_tokenized dynamic property values.
some source code analysis:

1. ResourcePropertyLookup constructor is returning null on the following statement for the dynamic "label" property:

resourcePropertyMappings = compassMapping.getResourcePropertyMappingsByPath(path);

2. CompassQueryParser.getFieldQuery(...) is not flowing through the block to set the analyzer to KEYWORD_ANALYZER since it is unable to check that the resourcePropertyMapping.index value is "UN_TOKENIZED".

3. Downstream a PhraseQuery is created instead of TermQuery.

followig bugs has been also found (to reproduce it I use collection of a class with two fields: name and value):

1. sorting does not work on dynamic-properties (probably un_tokenized bug )
2. "exclude-from-all" declaration has no effect

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Vitali Ryumshyn added a comment - 27/Jan/10 08:55 AM
sort is working.

the issues with "UN_TOKENIZED". and "exclude-from-all" still need to fix