Use this guide to help you navigate some aspects of customizing the search in Orchard. Afterwards you will be able to index fields of a part in the example I will be using price and indexing a quick mock of products.
Using the code
The key parts are:
- indexing (if you are including custom fields) To include the data in the index catalog it will need a ContentHandler that has a bit of code like:
- OnIndexing<TestPricePart>((context, part) =>
- context.DocumentIndex.Add("price", part.Record.Price)
- Create a custom search service implementing the priorities of your search and fields to search on