Have you tried using Find? :)
I would start by inspecting the search index using Luke: http://www.getopt.org/luke/luke-0.9.9/lukeall-0.9.9.jar
And do some logging to see when and why are documents deleted from the search index.
Perhaps you can create an initialization module, attach to IndexingService.DocumentAdding and IndexingService.DocumentRemoving events and do some logging.
If IndexingService is not available, install EPiServer.Search nuget package.
Hope this helps!
Turn on logging in log4net and check if you get any errors when trying to index. The most probable cause is that indexing worked before but stopped working some time ago which means you will find old content but not new content.
Thank you guys!
I got in contact with support and they wanted me to clear the table tblIndexRequestLog from the database... "The table contains all the items which should be indexed. And since you've already indexed the site, that table should be empty. Since it's not empty I can imagine it tries and index things in there as well which probably isn't up to date and this causes the index to be faulty perhaps? I know other cases where clearing that table has helped".
So far so good, but since I am a pessimistic person I am just waiting for the customer to contact me again and letting me know they don't get any hits when searching :)
I have a customer where we use Episerver Search to search for content. I have used Find for a different customer I worked with before so please don't tell me to use that instead because the problem I have at the moment I have had both with Search and Find :)
Anyway, the problem is that the content can be indexed and searchable one day and then the next day it isn't. I have tried to reindex the pages by using the following job:
But all the pages that we want to be searchable does not get indexed at all. At the moment I'm having a bunch of pages that should be indexed but when I search for them I can only find 4.
We are using version 7.
Have any of you had this problem? If so, how did you solve it?
Thanks in advance!