Orchard provides the ability to index and search. The Indexing property is enabled for indexing, along with a specific index execution (which includes the underlying search engine by default). In addition to indexing and search providing the ability to query the index (either through keywords or using search engine query syntax), you can also return a list of content entries that match the query on the front end.
You have to turn on the search, indexing, and Lucence properties.
Because the search is based on an index, the search automatically opens the indexing feature. Of course, to make search and indexing work properly, you must first turn on search engines.
When the indexed property is open, you will see Search and Indexes (index) appear below the settings. The indexer runs once per minute by default, and of course you can update or rebuild the index here (on the interface). The indexes interface also shows the number of indexed documents (content entries), and the search interface displays the fields that are indexed.
After you turn on the search property, go to the Content Definition option, click on any of the contents types that we want to index, and then select the check boxes that can be indexed. such as page content type
When search properties are available, the settings interface displays the fields that are queried by the index.
So far, the search interface is not visible on the foreground interface. To add, you have to add a part. Click Widgets in the Manage menu. With the default layer selected, click Add to Zone and next click Searchform in the available parts list.
Keep the "Header" of the area selected, and "Default" is the current layer so that the search part appears at the top of the page (the default layer will work for all pages in all sites).
Set a title for it, such as search, and then save it.
For more information on parts, please refer to: Managing Widgets.
If you go to any page of the foreground, you should see the search form.
If you enter a keyword or query in the input box, the content entry that matches it is displayed.
Orchard Search and Index