November Happy Hour will be moved to Thursday December 5th.

Class LuceneQueryHelper

Inheritance
System.Object
LuceneQueryHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Search.Providers.Lucene
Assembly: Mediachase.Search.LuceneSearchProvider.dll
Version: 12.17.2
Syntax
public class LuceneQueryHelper

Constructors

LuceneQueryHelper()

Declaration
public LuceneQueryHelper()

Methods

ConvertDecimalToSearchable(String)

Declaration
public static string ConvertDecimalToSearchable(string input)
Parameters
Type Name Description
System.String input
Returns
Type Description
System.String

ConvertToSearchable(String)

Converts string representation of a number to Lucene searchable.

Declaration
public static string ConvertToSearchable(string value)
Parameters
Type Name Description
System.String value

string representation of a number. E.g.: "2.00"

Returns
Type Description
System.String

a string which Lucene can index

CreateQuery(String, ISearchFilterValue)

Creates the query.

Declaration
public static Query CreateQuery(string field, ISearchFilterValue value)
Parameters
Type Name Description
System.String field

The field.

ISearchFilterValue value

The value.

Returns
Type Description
Lucene.Net.Search.Query

CreateQuery(String, PriceRangeValue)

Creates the query.

Declaration
public static Query CreateQuery(string field, PriceRangeValue value)
Parameters
Type Name Description
System.String field

The field.

PriceRangeValue value

The value.

Returns
Type Description
Lucene.Net.Search.Query

CreateQuery(String, RangeValue)

Creates the query.

Declaration
public static Query CreateQuery(string field, RangeValue value)
Parameters
Type Name Description
System.String field

The field.

RangeValue value

The value.

Returns
Type Description
Lucene.Net.Search.Query

CreateQuery(String, SimpleValue)

Creates the query.

Declaration
public static Query CreateQuery(string field, SimpleValue value)
Parameters
Type Name Description
System.String field

The field.

SimpleValue value

The value.

Returns
Type Description
Lucene.Net.Search.Query

A Lucene.Net.Search.WildcardQuery if the value contains a wildcard (*), otherwise a Lucene.Net.Search.TermQuery.