You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem searching a property mapped as a NumericField. Property is nullable-int-column. Column name is "CVR".
Pseudocode:
I map my properties like this:
var map = new ClassMap<KreditorSearchEngineItem>(Version.LUCENE_30);
//key
map.Key(x => x.Id).NotAnalyzed();
map.Property(x => x.CVR).AsNumericField();
This Query finds element with CVR=1234 no matter if CVR is mapped as numeric or default.
Query().Where(x => x.CVR == 1234);
This query cannot find element when CVR is mapped as numeric. Works if mapped as standard field.
var analyzer = new StandardAnalyzer(Net.Util.Version.LUCENE_30);
var parser = new MultiFieldQueryParser(Version.LUCENE_30, new [] {"CVR"}, analyzer)
{
AllowLeadingWildcard = true,
DefaultOperator = QueryParser.Operator.OR
};
Any thoughts?
The text was updated successfully, but these errors were encountered:
I have a problem searching a property mapped as a NumericField. Property is nullable-int-column. Column name is "CVR".
Pseudocode:
I map my properties like this:
This Query finds element with CVR=1234 no matter if CVR is mapped as numeric or default.
Query().Where(x => x.CVR == 1234);
This query cannot find element when CVR is mapped as numeric. Works if mapped as standard field.
Any thoughts?
The text was updated successfully, but these errors were encountered: