FoundatioFx / Foundatio.Parsers

A lucene style query parser that is extensible and allows modifying the query.
https://www.nuget.org/packages/Foundatio.Parsers.LuceneQueries/
Apache License 2.0
66 stars 19 forks source link

Is there some sample for using the lucense query syntax with Linq query #71

Closed WeihanLi closed 2 years ago

WeihanLi commented 2 years ago

I'm trying to use it to build the dynamic query but found it's a little difficult for me, so I'm wondering that if there's any sample to get started with this parser library.

Thanks

niemyjski commented 2 years ago

What kind of query are you trying to build up. The tests have a lot of examples

WeihanLi commented 2 years ago

Thanks for your reply @niemyjski , would try to look into the tests

ejsmith commented 2 years ago

@WeihanLi if you are trying to generate a LINQ query from the lucene syntax, then we don't have anything to do that. You could use an AST visitor to generate a database query from the lucene query. Currently we are only generating Elasticsearch queries from this library.

WeihanLi commented 2 years ago

@ejsmith many thanks for your info