LuceneToManticoreSql 0.0.1.1

dotnet add package LuceneToManticoreSql --version 0.0.1.1
NuGet\Install-Package LuceneToManticoreSql -Version 0.0.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LuceneToManticoreSql" Version="0.0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LuceneToManticoreSql --version 0.0.1.1
#r "nuget: LuceneToManticoreSql, 0.0.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LuceneToManticoreSql as a Cake Addin
#addin nuget:?package=LuceneToManticoreSql&version=0.0.1.1

// Install LuceneToManticoreSql as a Cake Tool
#tool nuget:?package=LuceneToManticoreSql&version=0.0.1.1

LuceneToManticoreSql

This package is used to convert lucene to manticore sql.

Install From Nuget

dotnet add package LuceneToManticoreSql --version 0.0.1

Features

This package only has one static method which you can access by using

  • getWhereClause
LuceneToSql.getWhereClause(<luceneQuery>) //resturns strign containing where clause part of manticore sql

Few examples of query translations are as below

  • Lucene Query is →
(title:"foo bar" AND body:"quick fox") OR title:fox

Manticore where clause is →

(log_json.title='foo bar' AND log_json.body='quick fox') OR log_json.title='fox'
  • Lucene Query is →
title:"foo"

Manticore where clause is →

log_json.title='foo'
  • Lucene Query is →
title:foo -title:bar

Manticore where clause is →

log_json.title='foo' AND  NOT log_json.title='bar'
  • Lucene Query is →
title:foo*

Manticore where clause is →

REGEX(log_json.title,'foo*')
  • Lucene Query is →
title:foo*bar

Manticore where clause is →

REGEX(log_json.title,'foo*bar')
  • Lucene Query is →
mod_date:[20020101 TO 20030101]

Manticore where clause is →

log_json.mod_date BETWEEN 20020101 AND 20030101
  • Lucene Query is →
title:foo

Manticore where clause is →

log_json.title='foo'
  • Lucene Query is →
zipcode:7

Manticore where clause is →

log_json.zipcode= 7
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.1.1 142 7/22/2023
0.0.1 151 12/6/2022