Query on umbracoNaviHide results in exception: Could not perform a range query on the field umbracoNaviHide
When I try to query nodes just by passing umbracoNaviHide = false to query I got the Exception:
Could not perform a range query on the field umbracoNaviHide, it's value type is Examine.LuceneEngine.Indexing.FullTextType
This is my code:
var searcher = index.GetSearcher();
var booleanOperation = searcher.CreateQuery("content").Field<bool>("umbracoNaviHide", false);
var content = booleanOperation.Execute().ToList();
What am I doing wrong here? Could anyone tell me please? Thanks! :-)
Query on umbracoNaviHide results in exception: Could not perform a range query on the field umbracoNaviHide
When I try to query nodes just by passing umbracoNaviHide = false to query I got the Exception: Could not perform a range query on the field umbracoNaviHide, it's value type is Examine.LuceneEngine.Indexing.FullTextType
This is my code:
What am I doing wrong here? Could anyone tell me please? Thanks! :-)
I've not tried specifically for v8 but in v7 we had to pass the value as a string.
so "0" for false!
Try this and let me know if it helps.
Thanks, David
is working on a reply...