mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Defining default search fields in Search recipe
This commit is contained in:
@@ -1,30 +1,34 @@
|
||||
<?xml version="1.0"?>
|
||||
<Orchard>
|
||||
<Recipe>
|
||||
<Name>Search</Name>
|
||||
<Description>Configures a default search index and search settings using the Lucene engine.</Description>
|
||||
<Author>The Orchard Team</Author>
|
||||
<WebSite>http://orchardproject.net</WebSite>
|
||||
<Tags>developer</Tags>
|
||||
<Version>1.0</Version>
|
||||
</Recipe>
|
||||
<Recipe>
|
||||
<Name>Search</Name>
|
||||
<Description>Configures a default search index and search settings using the Lucene engine.</Description>
|
||||
<Author>The Orchard Team</Author>
|
||||
<WebSite>http://orchardproject.net</WebSite>
|
||||
<Tags>developer</Tags>
|
||||
<Version>1.0</Version>
|
||||
</Recipe>
|
||||
|
||||
<Feature enable="Orchard.Search,Lucene" />
|
||||
<Feature enable="Orchard.Search,Lucene" />
|
||||
|
||||
<Metadata>
|
||||
<Types>
|
||||
<Page TypeIndexing.Indexes="Search">
|
||||
</Page>
|
||||
<BlogPost TypeIndexing.Indexes="Search">
|
||||
</BlogPost>
|
||||
</Types>
|
||||
</Metadata>
|
||||
<Metadata>
|
||||
<Types>
|
||||
<Page TypeIndexing.Indexes="Search">
|
||||
</Page>
|
||||
<BlogPost TypeIndexing.Indexes="Search">
|
||||
</BlogPost>
|
||||
</Types>
|
||||
</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>
|
||||
|
Reference in New Issue
Block a user