Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All,
I've set up examine as per the instructional videos on our umbraco. I've followed each step carefully and am not getting any results.
I've noticed that there are no .cfs files in the index folder only 'segments.gen' and 'segments_1' however there is a .del file in the queue folder.
I'm using umbraco 4.7.2. Please find my code below.
Thanks.
Here is my ExamineSettings.Config...
<Examine>
<ExamineIndexProviders>
<providers>
<add name="InternalIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
supportUnpublished="true"
supportProtected="true"
interval="10"
analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>
<add name="InternalMemberIndexer" type="UmbracoExamine.UmbracoMemberIndexer, UmbracoExamine"
analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"/>
<add name="AnthonyBarrieIndexer" type="UmbracoExamine.UmbracoMemberIndexer, UmbracoExamine"
supportUnpublished="false"
analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"
indexset="AnthonyBarrieIndexSet" />
</providers>
</ExamineIndexProviders>
<ExamineSearchProviders defaultProvider="InternalSearcher">
<add name="InternalSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
<add name="InternalMemberSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" enableLeadingWildcards="true"/>
<add name="AnthonyBarrieSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
</ExamineSearchProviders>
</Examine>
Here is my ExamineIndex.config
<ExamineLuceneIndexSets>
<!-- The internal index set used by Umbraco back-office - DO NOT REMOVE -->
<IndexSet SetName="InternalIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/Internal/">
<IndexAttributeFields>
<add Name="id" />
<add Name="nodeName" />
<add Name="updateDate" />
<add Name="writerName" />
<add Name="path" />
<add Name="nodeTypeAlias" />
<add Name="parentID" />
</IndexAttributeFields>
<IndexUserFields />
<IncludeNodeTypes/>
<ExcludeNodeTypes />
</IndexSet>
<!-- The internal index set used by Umbraco back-office for indexing members - DO NOT REMOVE -->
<IndexSet SetName="InternalMemberIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/InternalMember/">
<add Name="nodeName"/>
<add Name="loginName" />
<add Name="email" />
<IndexUserFields/>
<IndexSet SetName="AnthonyBarrieIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/AnthonyBarrieIndex/">
<IndexUserFields>
<add Name="bodyText" />
<add Name="umbracoNaviHide" />
</IndexUserFields>
</ExamineLuceneIndexSets>
Finally here is my code behind which is linked to a repeater...
protected string SearchTerm { get; private set; }
protected IEnumerable<SearchResult> SearchResults { get; private set; }
public SearchControl()
{
SearchTerm = string.Empty;
SearchResults = new List<SearchResult>();
}
protected void Page_Load(object sender, EventArgs e)
SearchTerm = Request.QueryString["search"];
if (string.IsNullOrEmpty(SearchTerm)) return;
var criteria = ExamineManager.Instance
.SearchProviderCollection["AnthonyBarrieSearcher"]
.CreateSearchCriteria();
var filter = criteria
.GroupedOr(new string[] { "nodeName", "bodyText" }, SearchTerm)
.Not()
.Field("umbracoNaviHide", "1")
.Compile();
SearchResults = ExamineManager.Instance.SearchProviderCollection["AnthonyBarrieSearcher"].Search(filter);
searchResultListing.DataSource = SearchResults;
searchResultListing.DataBind();
Just in case someone have similar issue with this, one of the solutions can be found here:
http://www.cpodesign.com/blog/umbraco-examine-could-not-find-file-segments_1n/
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Examine not working
Hi All,
I've set up examine as per the instructional videos on our umbraco. I've followed each step carefully and am not getting any results.
I've noticed that there are no .cfs files in the index folder only 'segments.gen' and 'segments_1' however there is a .del file in the queue folder.
I'm using umbraco 4.7.2. Please find my code below.
Thanks.
Here is my ExamineSettings.Config...
<Examine>
<ExamineIndexProviders>
<providers>
<add name="InternalIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
supportUnpublished="true"
supportProtected="true"
interval="10"
analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>
<add name="InternalMemberIndexer" type="UmbracoExamine.UmbracoMemberIndexer, UmbracoExamine"
supportUnpublished="true"
supportProtected="true"
interval="10"
analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"/>
<add name="AnthonyBarrieIndexer" type="UmbracoExamine.UmbracoMemberIndexer, UmbracoExamine"
supportUnpublished="false"
supportProtected="true"
interval="10"
analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"
indexset="AnthonyBarrieIndexSet" />
</providers>
</ExamineIndexProviders>
<ExamineSearchProviders defaultProvider="InternalSearcher">
<providers>
<add name="InternalSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>
<add name="InternalMemberSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" enableLeadingWildcards="true"/>
<add name="AnthonyBarrieSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"
indexset="AnthonyBarrieIndexSet" />
</providers>
</ExamineSearchProviders>
</Examine>
Here is my ExamineIndex.config
<ExamineLuceneIndexSets>
<!-- The internal index set used by Umbraco back-office - DO NOT REMOVE -->
<IndexSet SetName="InternalIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/Internal/">
<IndexAttributeFields>
<add Name="id" />
<add Name="nodeName" />
<add Name="updateDate" />
<add Name="writerName" />
<add Name="path" />
<add Name="nodeTypeAlias" />
<add Name="parentID" />
</IndexAttributeFields>
<IndexUserFields />
<IncludeNodeTypes/>
<ExcludeNodeTypes />
</IndexSet>
<!-- The internal index set used by Umbraco back-office for indexing members - DO NOT REMOVE -->
<IndexSet SetName="InternalMemberIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/InternalMember/">
<IndexAttributeFields>
<add Name="id" />
<add Name="nodeName"/>
<add Name="updateDate" />
<add Name="writerName" />
<add Name="loginName" />
<add Name="email" />
<add Name="nodeTypeAlias" />
</IndexAttributeFields>
<IndexUserFields/>
<IncludeNodeTypes/>
<ExcludeNodeTypes />
</IndexSet>
<IndexSet SetName="AnthonyBarrieIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/AnthonyBarrieIndex/">
<IndexAttributeFields>
<add Name="id" />
<add Name="nodeName"/>
<add Name="nodeTypeAlias" />
<add Name="parentID" />
</IndexAttributeFields>
<IndexUserFields>
<add Name="bodyText" />
<add Name="umbracoNaviHide" />
</IndexUserFields>
<IncludeNodeTypes/>
<ExcludeNodeTypes />
</IndexSet>
</ExamineLuceneIndexSets>
Finally here is my code behind which is linked to a repeater...
protected string SearchTerm { get; private set; }
protected IEnumerable<SearchResult> SearchResults { get; private set; }
public SearchControl()
{
SearchTerm = string.Empty;
SearchResults = new List<SearchResult>();
}
protected void Page_Load(object sender, EventArgs e)
{
SearchTerm = Request.QueryString["search"];
if (string.IsNullOrEmpty(SearchTerm)) return;
var criteria = ExamineManager.Instance
.SearchProviderCollection["AnthonyBarrieSearcher"]
.CreateSearchCriteria();
var filter = criteria
.GroupedOr(new string[] { "nodeName", "bodyText" }, SearchTerm)
.Not()
.Field("umbracoNaviHide", "1")
.Compile();
SearchResults = ExamineManager.Instance.SearchProviderCollection["AnthonyBarrieSearcher"].Search(filter);
searchResultListing.DataSource = SearchResults;
searchResultListing.DataBind();
}
Just in case someone have similar issue with this, one of the solutions can be found here:
http://www.cpodesign.com/blog/umbraco-examine-could-not-find-file-segments_1n/
is working on a reply...