J
JanusGraphโ€ข12mo ago
criminosis

Case Insensitive TextRegex?

Is there a way to convey a text insensitivity to a textRegex Regex without doing a per character index enumeration of casing? E.g. I'd normally make a regex like "(?i)foobar" (or pass to an explicit flags parameter in the regex builder) to match FOOBAR, Foobar, etc. But it seems like I have to do textRegex("[Ff][Oo][Oo][Bb][Aa][Rr]") to proxy that functionality?
4 Replies
Florian Hockmann
Florian Hockmannโ€ข12mo ago
JanusGraph basically just forwards these regular expressions to your index backends. So we are limited by what the index backends support. They used to not support case insensitive searches for regular expressions, but I just checked again and it looks like at least Elasticsearch added support for that in version 7.10.0: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-term-query.html#term-field-params I think we should add support for that into JanusGraph somehow. If you want, you can create an issue for that in the main JanusGraph repo
Florian Hockmann
Florian Hockmannโ€ข12mo ago
Note that the full-text search predicates like textContainsRegex are apparently already case-insensitive by default, probably due to the tokenization: https://docs.janusgraph.org/index-backend/text-search/#full-text-search_1 But since you mentioned textRegex, this doesn't apply here
criminosis
criminosisโ€ข12mo ago
Created @florianhockmann ๐Ÿ‘ . Should I mark your message as the solution since it's now a feature request for a later date? https://github.com/JanusGraph/janusgraph/issues/3878
GitHub
Case insensitive textRegex predicate option ยท Issue #3878 ยท JanusGr...
Describe the feature: Currently textRegex applies a case sensitive matching by default. In my particular use case I'm using Elasticsearch as my mixed index backend, and it is case sensitive by ...
Florian Hockmann
Florian Hockmannโ€ข12mo ago
Sure you can do that ๐Ÿ™‚
Want results from more Discord servers?
Add your server
More Posts
Read Only Janusgraph InstanceHI folks, We have a usecase for accesing janusgraph in read only mode. We already have a read write Transactions and atomicityHi all! I'm researching JanusGraph and I'm excited to learn more. There's one thing I haven't undersHow do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?With the following configuration settings and using the default `g` alias I can work with gremlin/Jaio.netty.handler.codec.DecoderException While adding an EdgeGetting io.netty.handler.codec.DecoderException while adding an edge between two vertices. Vertex vCan graph scans restrictions be bypassed?When a JanusGraph database has janusgraph.query.force-index: "true"โ€‹, is there a way to submit querigetting ClassNotFoundException when trying to run gremlin query g.V().valueMap for custom classI am storing the Map <String,Address> into graph as property like: Map<String, Address> location = nWhy is the default serializer in conf/remote.yaml GryoV3?Im using Janusgraph 0.6.0 in a docker container. Everytime i start the container, I get the message JanusGraph metrics data having value 0 for most metricsI have a janusgrpah server with metrics enabled along with jmx.metric enabled, The issue is all the Upgrading from 0.6 to 1.0.0-20230626 caused indexes to disappearHi all, I tried to upgrade from 0.6 to 1.0.0-20230626 yesterday, and I ran into some issues. All ofDoes JanusGraph keep the connection?When a JanusGraph server is started, does it keep connections to the Storage Backends? Or when an op