lucene-query-builder
Advanced tools
Comparing version 0.5.0 to 0.6.0
import { query } from './query'; | ||
import { LuceneBuilder } from './LuceneBuilder'; | ||
import { fq } from './fq'; | ||
export { query, fq, LuceneBuilder }; | ||
import { QueryTerm, Filter, DateParams } from './types'; | ||
export { query, fq, LuceneBuilder, QueryTerm, Filter, DateParams }; |
@@ -1,2 +0,2 @@ | ||
import { Filter, Options, QueryParams } from './types'; | ||
import { Filter, Options, Query } from './types'; | ||
/** | ||
@@ -22,3 +22,3 @@ * This class is used to build query strings for Lucene. | ||
*/ | ||
query({ phrase, and, not, dates }: Omit<QueryParams, 'options'>): string; | ||
query({ phrase, and, not, dates }: Omit<Query, 'options'>): string; | ||
/** | ||
@@ -25,0 +25,0 @@ * Constructs a filter query (fq) string based on the provided filters. |
@@ -1,5 +0,5 @@ | ||
import { QueryParams } from './types'; | ||
import { Query } from './types'; | ||
/** | ||
* Constructs a query string based on the provided options. | ||
*/ | ||
export declare const query: ({ phrase, and, not, dates, options, }?: Partial<QueryParams>) => string; | ||
export declare const query: ({ phrase, and, not, dates, options, }?: Partial<Query>) => string; |
@@ -46,3 +46,3 @@ /** | ||
*/ | ||
export interface QueryParams { | ||
export interface Query { | ||
phrase?: string; | ||
@@ -49,0 +49,0 @@ and?: QueryTerm[]; |
import { query } from './query'; | ||
import { LuceneBuilder } from './LuceneBuilder'; | ||
import { fq } from './fq'; | ||
export { query, fq, LuceneBuilder }; | ||
import { QueryTerm, Filter, DateParams } from './types'; | ||
export { query, fq, LuceneBuilder, QueryTerm, Filter, DateParams }; |
@@ -1,2 +0,2 @@ | ||
import { Filter, Options, QueryParams } from './types'; | ||
import { Filter, Options, Query } from './types'; | ||
/** | ||
@@ -22,3 +22,3 @@ * This class is used to build query strings for Lucene. | ||
*/ | ||
query({ phrase, and, not, dates }: Omit<QueryParams, 'options'>): string; | ||
query({ phrase, and, not, dates }: Omit<Query, 'options'>): string; | ||
/** | ||
@@ -25,0 +25,0 @@ * Constructs a filter query (fq) string based on the provided filters. |
@@ -1,5 +0,5 @@ | ||
import { QueryParams } from './types'; | ||
import { Query } from './types'; | ||
/** | ||
* Constructs a query string based on the provided options. | ||
*/ | ||
export declare const query: ({ phrase, and, not, dates, options, }?: Partial<QueryParams>) => string; | ||
export declare const query: ({ phrase, and, not, dates, options, }?: Partial<Query>) => string; |
@@ -46,3 +46,3 @@ /** | ||
*/ | ||
export interface QueryParams { | ||
export interface Query { | ||
phrase?: string; | ||
@@ -49,0 +49,0 @@ and?: QueryTerm[]; |
{ | ||
"name": "lucene-query-builder", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Library to build lucene queries in a typescript friendly way", | ||
@@ -5,0 +5,0 @@ "main": "lib/cjs/index.js", |
43386
864