I want to create a custom search using Examine. I am using Umbraco 7.2.5. But the index is not building at all. I have retried rebuilding, but nothing. The document count still is zero,
Documents in index 0
Fields in index 0
Has deletions? false (0)
Optimized? false
In developer's section 'Examine Management', there is a button 'Rebuild index'. But nothing happens after doing that.
To add the custom index, I have modified the ExamineIndex and ExamineSettings files as follows:
@Alex: I have checked all the fields and they are correct. I even tried with only one field, but when I click on the 'Rebuild index' button in Examine Management, it just loads and stops and the values remains 0 for all files.
The website is not that huge.
@Ismail: I have tried publishing one item type as suggested but still nothing.
@Yakov: The naming convention seems to be fine too.
Custom Examine Index
Hello
I want to create a custom search using Examine. I am using Umbraco 7.2.5. But the index is not building at all. I have retried rebuilding, but nothing. The document count still is zero,
Documents in index 0 Fields in index 0 Has deletions? false (0) Optimized? false
Anyone encounter similar issue?
Regards, Aaeda
Hi Aaeda
How did you build your index?
Can you show some code how did you add documents to index?
Thanks,
Alex
Hello Alex
In developer's section 'Examine Management', there is a button 'Rebuild index'. But nothing happens after doing that. To add the custom index, I have modified the ExamineIndex and ExamineSettings files as follows:
**ExamineIndex
*ExamineSettings
Is there something else that should be done?
Thanks Regards A
Hi Aaeda
It looks like you need to add IndexSet to 'ExamineIndex.config', for example:
The most import part of this section is that the IndexSet' property matches your index name that was defined in the ExamineIndexProviders.
Thanks,
Alex
Hi Aaeda
Did you find out what is the issue?
Thanks
Alex
Hello Alex
Yes I added this (please see below). It seems the code i copied got cut off. But it is still not indexing.
<IndexSet SetName="ContentSearch" IndexPath="~/App_Data/ExamineIndexes/MySearch/"> <IndexAttributeFields> <add Name="id" /> <add Name="nodeName"/> <add Name="parentID"/> <add Name="updateDate" /> <add Name="writerName" /> <add Name="nodeTypeAlias" /> </IndexAttributeFields> <IndexUserFields> <add Name="villasType"/> <add Name="Floors"/> <add Name="noOfBedrooms"/> <add Name="priceRange"/> <add Name="plotSize"/> </IndexUserFields> <IncludeNodeTypes> <add Name="VillasResale" /> </IncludeNodeTypes> </IndexSet>
Hi Aaeda
Can you check access your site to "~/App_Data/ExamineIndexes/MySearch" folder?
Do you have some errors in log?
Thanks,
Alex
Hello Alex
Please see blow the files that are in the folder. There are no error messages in the logs.
Thanks Aaeda
Hi
It looks like index was created, but why you can't find any results.
Did you insert right fields to index?
By the way, index files are really small, looks like data isn't right for indexing, do you have huge site?
Thanks,
Alex
Aaeeda,
Can you try publishing just one item of type VillasResale then goto examine dashboard and see if it ends up in the index.
Regards
Ismail
Also verify naming convention
IndexSet - in ExamineIndex.config need has IndexSet suffix like MySearchIndexSet
Searcher - in ExamineSettings.config need has Searcher suffix like MySearchSearcher
Indexer- in ExamineSettings.config need has Indexer suffix like MySearchIndexer
thanks everyone for the replies. I will try the solutions mentioned and keep you informed.
Thanks Aaeda
hello
@Alex: I have checked all the fields and they are correct. I even tried with only one field, but when I click on the 'Rebuild index' button in Examine Management, it just loads and stops and the values remains 0 for all files. The website is not that huge.
@Ismail: I have tried publishing one item type as suggested but still nothing.
@Yakov: The naming convention seems to be fine too.
Regards Aaeda
Can you share ExamineIndex.config and ExamineSettings.config ?
If you remove IncludeNodeTypes section it's also display 0 documents ?
Hi Aaeda
Really strange, maybe something with Umbraco installation?
What version of Umbraco? What about other Examine indexes? Are they working?
Thanks,
Alex
Hi Alex
Yes its very weird. The umbraco version is 7.2.5. Yes the other indexes are working for example InternalIndex or ExternalIndex.
@Yakov: Please find below the config files. Yes it still display 0 documents even if I remove IncludeNodeTypes.
ExamineSettings:
I still think that it name convetion
Should Be
Indexer:
Searcher:
Hello Everyone
It finally worked. I deleted the index and add it again from scratch. It now seems to be indexing correctly.
Thanks Regards Aaeda
Hi Aaeda
Did you find any difference with config files that you had before?
Any thoughts why it didn't work?
Thanks,
Alex
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion