mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Defining default search fields in Search recipe
This commit is contained in:
@@ -1,30 +1,34 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<Orchard>
|
<Orchard>
|
||||||
<Recipe>
|
<Recipe>
|
||||||
<Name>Search</Name>
|
<Name>Search</Name>
|
||||||
<Description>Configures a default search index and search settings using the Lucene engine.</Description>
|
<Description>Configures a default search index and search settings using the Lucene engine.</Description>
|
||||||
<Author>The Orchard Team</Author>
|
<Author>The Orchard Team</Author>
|
||||||
<WebSite>http://orchardproject.net</WebSite>
|
<WebSite>http://orchardproject.net</WebSite>
|
||||||
<Tags>developer</Tags>
|
<Tags>developer</Tags>
|
||||||
<Version>1.0</Version>
|
<Version>1.0</Version>
|
||||||
</Recipe>
|
</Recipe>
|
||||||
|
|
||||||
<Feature enable="Orchard.Search,Lucene" />
|
<Feature enable="Orchard.Search,Lucene" />
|
||||||
|
|
||||||
<Metadata>
|
<Metadata>
|
||||||
<Types>
|
<Types>
|
||||||
<Page TypeIndexing.Indexes="Search">
|
<Page TypeIndexing.Indexes="Search">
|
||||||
</Page>
|
</Page>
|
||||||
<BlogPost TypeIndexing.Indexes="Search">
|
<BlogPost TypeIndexing.Indexes="Search">
|
||||||
</BlogPost>
|
</BlogPost>
|
||||||
</Types>
|
</Types>
|
||||||
</Metadata>
|
</Metadata>
|
||||||
|
|
||||||
<Migration features="*" />
|
<Migration features="*" />
|
||||||
|
|
||||||
|
<Command>
|
||||||
|
index create Search
|
||||||
|
index update Search
|
||||||
|
</Command>
|
||||||
|
|
||||||
|
<Settings>
|
||||||
|
<SearchSettingsPart SearchedFields="body,title" FilterCulture="false" SearchIndex="Search" />
|
||||||
|
</Settings>
|
||||||
|
|
||||||
<Command>
|
|
||||||
index create Search
|
|
||||||
index update Search
|
|
||||||
search use Search
|
|
||||||
</Command>
|
|
||||||
</Orchard>
|
</Orchard>
|
||||||
|
|||||||
Reference in New Issue
Block a user