Skip to content

x2find/Dictionary2Find

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages