Umbraco Examine returning results with True/False property
I am using Umbraco Examine for a basic site search. I have a DocType that has a property with a true/false data type. I want the search to return any content of that doctype where the property is true if the name of the property is the search query. Any suggestions?
Umbraco Examine returning results with True/False property
I am using Umbraco Examine for a basic site search. I have a DocType that has a property with a true/false data type. I want the search to return any content of that doctype where the property is true if the name of the property is the search query. Any suggestions?
Hi Mitch!
I think you have minimum two solutions.
Best way is use this example code:
Note
.Field("TrueFalsePropertyAlias", "0")
Or you can filter all search results by fields:
Hope it help you!
Regards, Ivan
is working on a reply...