Writing Predicate Parser For Search in C# with Antlr 4 – Part Two
Continuing from the previous part, where we’ve written and tested our parser using Antlr 4 – let’s now generate a C#
parser, and hook it up to search an elasticsearch
index.
Continuing from the previous part, where we’ve written and tested our parser using Antlr 4 – let’s now generate a C#
parser, and hook it up to search an elasticsearch
index.
For some products, having your own language that your customers can use to be productive, or make your product that much more powerful, is a Domain Specific Language. Think Atlassian’s Jira Query Language, Github’s filter feature etc.
When we think of pagination – we think SELECT * FROM MYTABLE LIMIT {skip}, {take}
– ahhhhhh… ignorance is bliss.
Let’s go through some of the ways we expose pagination through a Web API and dig a little deeper.
Sometimes, there are cases when we need a Search Solution for a hobby project but don’t want to spend extra time and money in having a Lucene
or some other form of abstraction of Lucene
, such as Solr
or ElasticSearch
. If you’re working with MySQL
(or even better, with Postgres
), then you’re in luck – there’s a way to have a quick and dirty search solution for your dear project.