I am using very old Umbraco that is version 4 in which I want by using examine Create search criteria i should skip or remove records which have null or 0 value. I am new to this so wondering how can i do this.
I am using
var query =
_searchProvider.CreateSearchCriteria()
.NodeTypeAlias(DocTypes.CloudTrigger.ToLowerInvariant())
.And()
.Field("regionId", regionId.ToString());
and my Examine Indexer is
after running above query I am getting 51 records out of which my 45 records are useless as it has no data.
Can anyone help me to add any null or zero checks in this?
Umbraco 4 Version
Hi All,
I am using very old Umbraco that is version 4 in which I want by using examine Create search criteria i should skip or remove records which have null or 0 value. I am new to this so wondering how can i do this.
I am using var query = _searchProvider.CreateSearchCriteria() .NodeTypeAlias(DocTypes.CloudTrigger.ToLowerInvariant()) .And() .Field("regionId", regionId.ToString());
and my Examine Indexer is
after running above query I am getting 51 records out of which my 45 records are useless as it has no data.
Can anyone help me to add any null or zero checks in this?
Thanks In Advance.
Hi Tarun,
Have you tried deleting the index files in the App_Data folder ??
if not, remove these files restart the application
Hi Marcio, Thanks for your response.
Yes, I tried that but after deleting this I am getting 0 counts. Please suggest something else.
Tarun, In the config file config/ExamineSettings.config add the property RebuildOnAppStart as below.
this causes you to examine reindex the content
Or
Can do by code
https://gist.github.com/kevinblake/4000628
change the indexes by their
I recommend installing the Examine dashboard package
https://our.umbraco.com/projects/developer-tools/examine-dashboard/
With it you can see how the index is and force the indexing
or
https://our.umbraco.com/projects/backoffice-extensions/examine-index-admin/
is working on a reply...