问题
I have a project completed with Orchard CMS. The all functionalities are implemented through modules. Search module was also working till a few days ago, but suddenly it is stopped to working, "without any reason". The issue is that I can not rebuild/update indexes. When I run indexing, it will only index default list of fields (id, title, body, format, type, author, created, published, modified, culture) but my custom fields are not indexed. I tried everything but without any success. I tried: - Deleting Indexing/Search folder with all files - Reinstalling Search/Indexing/Lucene modules - Rebuilding and rebuilding indexes.... - Clearing solution and rebuilding...
I didn't extend any of Orchard modules, they are the same as when I downloaded them.
Any advice on this one...?
P.S. Yes, I already checked custom fields thats need to be indexed. :) Thanks,
回答1:
If you think the index is corrupted, delete App_data\Sites\Default\Search.settings.xml
and App_data\Sites\Default\Indexes
, then restart the app pool. You should then be able to rebuild the index.
Apparently you already did this, but for others who may not have, you also need to check the fields you want indexed under Settings/Search. This will include the fields in search.
But for the fields to be included in search, they need to be indexed first. For this, you need to go to Content/Content Types and edit the content type the fields are on. Check "index this content type for search". Also deploy the settings for each field you want indexed, and check "include in the index".
回答2:
You'll need to run the "Recipe" to create the "Search" index.
回答3:
It appears that Search + Lucene + Indexing works with Text Fields but not Numeric Fields.
回答4:
When the search feature is enabled, the Settings screen in the dashboard displays the fields that will be queried from the index (listed on the Search screen).
enter image description here
来源:https://stackoverflow.com/questions/16021915/orchard-search-indexing-issue