This project is read-only.

ExamiNRT Experiment 1

Rating: No reviews yet
Downloads: 17
Change Set: 386256194aac
Released: Jun 21, 2013
Updated: Jun 21, 2013 by nielskuhnel
Dev status: Alpha Help Icon

Recommended Download

Application ExamiNRT, Experiment 1
application, 885K, uploaded Jun 21, 2013 - 17 downloads

Release Notes

This is a technical preview of the next version of Examine.

Highlights:
- Faceted search
- Improved analyzers
- Pluggable data types
- "Managed query"
- Domain based relevance matching


To try it out simply copy the dll's to you Umbraco project's bin folder.
It has been tested with Umbraco 6.1.

Change ExternalIndexSet in ExamineIndex.config to include these settings:

<IndexSet SetName="ExternalIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/External/">
    <IndexAttributeFields>
      <add Name="nodeTypeAlias" Type="Facet" />
    </IndexAttributeFields>
    <IndexUserFields>
      <add Name="body" Type="FullText" />
      <add Name="title" Type="AutoSuggest" />
    </IndexUserFields>
  </IndexSet>



Rename AppData\TEMP\ExamineIndexes to "ExamineIndexesBak" (or whatever). This will make Examine rebuild the indexes for the new features.


Try writing this somewhere in your razor code:

var c = ExamineManager.Instance.SearchProviderCollection["ExternalSearcher"].CreateSearchCriteria()
                                                                                .MaxCount(10).CountFacets(true);
    var all = c.All().Execute();

    var umb = c.ManagedQuery("umb", fields: new[] {"title", "body"}).Execute();
    

    foreach (var f in all.FacetCounts.GetTopFacets(10))
    {
        <div>@(f.Key.FieldName + ":" + f.Key.Value + ": " + f.Value)</div>
    }

If that works, it works.

Reviews for this release

No reviews yet for this release.