blmille1 / dtsearchparser Goto Github PK
View Code? Open in Web Editor NEWOpen Source dtSearch Parser and Solr Compiler
Open Source dtSearch Parser and Solr Compiler
How can we support unicode characters to be searched?
Hi,
I would like to ask You for a fix with SubExpressions:
So the problem is when I try to parse a regular expression like this: ##(\b[a-z]+[0-9]+\b)
It’s parsed like this: ##
I think it’s because there is a rule which is applied to an expression like this:
(\b[a-z]+[0-9]+\b) which is this expression: '(' expression ')'
That expression is called SubExpression and I don’t think we use it correctly because in that Lucene Query Visitor it is just ignored as I can see.
Instead of ignoring that it would be good to follow an order something like this:
So I would like to ask help in resolving these issues:
I saw an article which describes this situation but it’s slightly different then the one used here, so it would be helpful if someone can show me how can this be applied to the parser's grammar file:
https://stackoverflow.com/questions/5575452/parsing-expressions-with-subexpressions-in-antlr
I found some other missing expressions from that Grammar file which I would like to share with You:
Expressions:
RangeStart expression RangeEnd # RangeExpression
'<' Exists '>' # ExistsExpression
Tokens:
Exists : [eE][xX][iI][sS][tT][sS];
RangeStart : [[{];
RangeEnd : [\]}];
Kind Regards, Attila
Parsing
( is this ) love
results in
contents:"is this"
It does not throw any error or exception. Can we have the parser throw exception when entire text to be parsed is not consumed properly?
I tried changing grammar as
query : expr;
to
query : expr EOF;
But that didn't help.
test case* written
is expanded as
SpanNear([contents:test, SpanMultiTermQueryWrapper(contents:case*), contents:written], 0, True)
"test case* written" is expanded as
SpanNear([contents:test, contents: , SpanMultiTermQueryWrapper(contents:case*), contents: , contents:written], 0, True)
Are the blank contents: expected?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.