Class QueryTemplateManager
Provides utilities for turning query form input (such as from a web page or Swing gui) into
Lucene XML queries by using XSL templates. This approach offers a convenient way of externalizing
and changing how user input is turned into Lucene queries.
Database applications often adopt similar practices by externalizing SQL in template files that can
be easily changed/optimized by a DBA.
The static methods can be used on their own or by creating an instance of this class you can store and
re-use compiled stylesheets for fast use (e.g. in a server environment)
LUCENENET (.NET Core): This is not compiled this because .NET Standard
does not currently support XSL Transform.
Inheritance
System.Object
QueryTemplateManager
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()
Assembly: Lucene.Net.QueryParser.dll
Syntax
[Serializable]
public class QueryTemplateManager
Constructors
Methods
Name |
Description |
AddDefaultQueryTemplate(Stream)
|
|
AddQueryTemplate(String, Stream)
|
|
GetQueryAsDOM(IDictionary<String, String>)
|
|
GetQueryAsDOM(IDictionary<String, String>, Stream)
|
Slow means of constructing query - parses stylesheet from input stream
|
GetQueryAsDOM(IDictionary<String, String>, String)
|
|
GetQueryAsDOM(IDictionary<String, String>, XslCompiledTransform)
|
Fast means of constructing query using a cached,precompiled stylesheet
|
GetQueryAsXmlString(IDictionary<String, String>)
|
|
GetQueryAsXmlString(IDictionary<String, String>, Stream)
|
Slow means of constructing query parsing a stylesheet from an input stream
|
GetQueryAsXmlString(IDictionary<String, String>, String)
|
|
GetQueryAsXmlString(IDictionary<String, String>, XslCompiledTransform)
|
Fast means of constructing query using a precompiled stylesheet
|
GetTemplates(Stream)
|
Parses a query stylesheet for repeated use
|
TransformCriteria(IDictionary<String, String>, Stream, Stream)
|
Slower transformation using an uncompiled stylesheet (suitable for development environment)
|
TransformCriteria(IDictionary<String, String>, XslCompiledTransform, Stream)
|
Fast transformation using a pre-compiled stylesheet (suitable for production environments)
|
Extension Methods