Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Dictionary2Find

Adds dictionary searching/filtering to EPiServer Find's .NET API

Build

In order to build Dictionary2Find the NuGet packages that it depends on must be restored. See http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages

Usage

Add DictionaryConventions to the conventions:

client.Conventions.AddDictionaryConventions();

and start searching:

result = client.Search<Document>()
            .For("Henrik")
            .InField(x => x.MetadataDictionary["Author"])
            .GetResult();

or filtering by key/value:

result = client.Search<Document>()
            .Filter(x => x.MetadataDictionary["Author"].Match("Henrik"))
            .GetResult();

...by keys:

result = client.Search<Document>()
            .Filter(x => x.MetadataDictionary.Keys.Match("Author"))
            .GetResult();

...by values:

result = client.Search<Document>()
            .Filter(x => x.MetadataDictionary.Values.Match("Henrik"))
            .GetResult();

About

Adds dictionary searching/filtering to EPiServer Find's .NET API

Resources

Releases

No releases published

Packages

No packages published

Languages