public SearchContext(HttpClient client, string core, INodeTranslator nodeTranslator = null, IResposeTranslator resposeTranslator = null) { Core = core; _client = client; if (nodeTranslator == null) { _nodeTranslator = new NodeTranslator(new NewtonsoftJsonFieldTranslator()); } else { _nodeTranslator = nodeTranslator; } if (resposeTranslator == null) { _resposeTranslator = new NewtonsoftJsonResposeTranslator(); } else { _resposeTranslator = resposeTranslator; } }
public SolrQueryProvider(ISearchContext solrService, INodeTranslator nodeTranslator) { _solrService = solrService; _nodeTranslator = nodeTranslator; }
public override void Translate(INodeTranslator translator, StringBuilder textBuilder) => translator.Translate(this, textBuilder);
public abstract void Translate(INodeTranslator translator, StringBuilder textBuilder);
public MarkdownTokenTreeTranslator(INodeTranslator nodeTranslator) { this.nodeTranslator = nodeTranslator; }