Re: Index not being used with 'Between" clause
Jason Plurad <plu...@...>
Make sure you're using a mixed index for numeric range queries. Composite indexes are best for exact matching. The console session below shows the difference:
-- Jason
On Wednesday, June 7, 2017 at 12:01:31 PM UTC-4, Gene Fojtik wrote:
|
||
|
||
Re: How to list properties from gremlin console
Jason Plurad <plu...@...>
Hi Gene, Never tried to do it before seeing your post, but this seems workable:
-- Jason
On Tuesday, June 6, 2017 at 5:46:09 PM UTC-4, Gene Fojtik wrote:
|
||
|
||
Re: Indexes stuck in INSTALLED status
Brandon Dean <engr...@...>
Thanks Rafael, I did see your post and I gave those settings a shot but that alone didn't seem to resolve the problem. Following the steps in my last post seems to be a repeatable solution to getting indexes out of the INSTALLED status though. I did some more testing on the disable process and it worked fine this time as long as I:
At this point I feel like I know how to get things back on track, even though I still don't have a good understanding of how they got off track in the first place. Thanks again for your response!
|
||
|
||
Re: [WARNING] 0.1.0 to 0.1.1 upgrade
Alexander Patrikalakis <amcpatr...@...>
It seems like 0.2.0 is on the horizon for June/early July. If the next TinkerPop release slips, we may consider a 0.1.2 release to fix the JG 0.1.0 compatibility issue and include the following adjustment the DynamoDB backend would like to have: https://github.com/JanusGraph/janusgraph/commit/5d9ebb46c0e11c57f9336e9f38057e6e3b2e49a5 Alex
On Thursday, May 18, 2017 at 12:19:05 PM UTC-10, Ted Wilmes wrote:
|
||
|
||
Re: Indexes stuck in INSTALLED status
Rafael Fernandes <luizr...@...>
I've helped another user that asked me me in private exactly the same issue as yourself and my solution worked for him... you may wanna try it as well:
Let me know if it works so I can push a "workaround" section on documentation... see below my email ======= Reindexing has been tough for me too, so I had to write few wrapper classes and tons of debugging to make sure I didn't miss anything, but what I found out was that, some of my transactions were still opened, remember, titan/Janus open several threads and they might have opened transactions that you don't know about... I'd suggest the following, if you can: 1) stop all your app servers 2) use gremlin console or write a simple java program 3) execute steps 29.1.5.1, http://docs.janusgraph.org/latest/index-admin.html 3.1) set this storage.parallel-backend-ops=false 3.2) set this ids.num-partitions=1 3.3) depending how large your graph is, this shouldn't take long... 4) once your indexes are done, bring up your servers. That should do the trick, it did for me... Enjoy, Rafa
|
||
|
||
Index not being used with 'Between" clause
Gene Fojtik <genef...@...>
Hello, Have an index in a property "latitude", when using with the between clause, the index is not being utilized g.V().has("latitude", 33.333") works well, however g.V().has(“latitude”, between(33.889, 33.954))) does not use the indexes.. Any assistance would be appreciated.. -g
|
||
|
||
Re: Indexes stuck in INSTALLED status
Brandon Dean <engr...@...>
After some further investigation, I realized I did apparently have one transaction that was holding things up. Using graph.tx().rollback() had no effect so I used this method I found after some searching: gremlin> size = graph.getOpenTransactions().size(); ==>1 gremlin> for(i=0;i<size;i++) {graph.getOpenTransactions().getAt(0).rollback()} ==>null That alone didn't make any difference but after doing that I ran the following commands and my index finally moved from INSTALLED to REGISTERED: gremlin> mgmt = graph.openManagement() gremlin> byName= mgmt.getGraphIndex('byNameComposite'); gremlin> propkey = mgmt.getPropertyKey('name'); gremlin> byName.getIndexStatus(propkey); ==>INSTALLED gremlin> mgmt.updateIndex(byName, SchemaAction.REGISTER_INDEX).get() gremlin> byName.getIndexStatus(propkey); ==>INSTALLED gremlin> mgmt.commit() gremlin> mgmt = graph.openManagement() gremlin> byName.getIndexStatus(propkey); ==>INSTALLED gremlin> mgmt.awaitGraphIndexStatus(graph, 'byNameComposite').call() ==>GraphIndexStatusReport[success=true, indexName='byNameComposite', targetStatus=REGISTERED, notConverged={}, converged={name=REGISTERED}, elapsed=PT0.008S] It's not clear to me whether calling awaitGraphIndexStatus actually triggered anything or (if as I suspect) it is just monitoring the status and I needed to wait a little longer. I also need to do some more testing with the disable process because none of this addresses the fact that when I tried to disable my index it got stuck in the INSTALLED state rather than moving to a DISABLED state as I expected. On Tuesday, June 6, 2017 at 2:35:15 PM UTC-5, Brandon Dean wrote:
On Tuesday, June 6, 2017 at 2:35:15 PM UTC-5, Brandon Dean wrote:
|
||
|
||
Re: Geo Data
JZ <zamb...@...>
Thanks for feedback, very helpful.
On Wednesday, June 7, 2017 at 9:33:07 AM UTC-4, JZ wrote:
|
||
|
||
Re: Geo Data
Robert Dale <rob...@...>
If it's an index query, it should use the index backend. If it's mid-traversal, it will likely use a geo predicate which uses spatial4j [1]. ES, solr use lucene. Lucene also uses spatial4j. So I think in the end everything uses spatial4j. And they all also use JTS [2] to some degree.
Robert Dale
On Wed, Jun 7, 2017 at 1:44 AM, JZ <zamb...@...> wrote:
|
||
|
||
Re: Who is using JanusGraph in production?
Liu-Cheng Xu <xuliuc...@...>
Awesome! Could you also share the links here when ready? Tunay Gür <tuna...@...>于2017年6月7日周三 上午6:47写道:
-- Liu-Cheng Xu
|
||
|
||
Re: Character case behaviour different with or without indices
ni...@...
Ok, thanks. That is good to know.
|
||
|
||
Re: Character case behaviour different with or without indices
tpr...@...
If you want to use both, you have to use TEXTSTRING mapping.
|
||
|
||
Re: Character case behaviour different with or without indices
ni...@...
Great. I was using STRING and TEXT indices and janus was only finding the TEXT one. I stopped using the TEXT index and it started to behave as expected. I had assumed that janus would use the right index based on the query (textRegex vs textContainsRegex). Thanks for your help.
|
||
|
||
Geo Data
JZ <zamb...@...>
(1) Was looking at the GEO facilities, does someone know what algorithm or approach is used by the implementation for GEO location calculations?
|
||
|
||
Re: Character case behaviour different with or without indices
tpr...@...
Are you using DEFAULT mapping or no Mapping ? If so, DEFAULT mapping or no mapping use TEXT mapping which are bind to Text ES datatype (https://www.elastic.co/guide/en/elasticsearch/reference/current/text.html) which are lowercased by default. So, if you use STRING mapping which is bind to Keyword ES datatype which are untouched by default, it should work.
Le mardi 6 juin 2017 23:24:46 UTC+2, Nigel Brown a écrit :
Elasticsearch 5.1.1
|
||
|
||
Re: Who is using JanusGraph in production?
Tunay Gür <tuna...@...>
We are (uber) using JG in production at the moment. We're recently started to contribute some of our code back and it's in plan to publish our learnings, benchmarks etc as series of blog posts.
On Monday, June 5, 2017 at 11:53:37 AM UTC-7, Misha Brukman wrote:
|
||
|
||
How to list properties from gremlin console
Gene Fojtik <genef...@...>
Is there a way to list the current graph properties from the gremlin console? Looking for the properties set in the *.properties file that have been sourced on start-up. -gene
|
||
|
||
Re: Character case behaviour different with or without indices
Nigel Brown <ni...@...>
Elasticsearch 5.1.1
|
||
|
||
Re: Character case behaviour different with or without indices
tpr...@...
which indexing backend do you use ?
Le lundi 5 juin 2017 18:53:40 UTC+2, Nigel Brown a écrit :
|
||
|
||
Indexes stuck in INSTALLED status
Brandon Dean <engr...@...>
I've been struggling with my indexes getting stuck in the INSTALLED status with no apparent way to get them out of that status. After much frustration, I started with a completely fresh install of JanusGraph 0.1.1, left the configuration as is, and then followed the steps from the documentation exactly to create a new composite index. I was able to successfully create my index and it moved into the REGISTERED status and then the ENABLED status after issuing a REINDEX command. 1490727 [gremlin-server-session-1] INFO org.janusgraph.graphdb.database.management.GraphIndexStatusWatchemposite do not currently have status REGISTERED: name=ENABLED I then attempted to follow the documentation to delete this same index using the following steps: gremlin> :remote connect tinkerpop.server /opt/vdp/janus/conf/remote.yaml session gremlin> :remote console gremlin> m = graph.openManagement() gremlin> i = m.getGraphIndex('byNameComposite') gremlin> m.updateIndex(i, SchemaAction.DISABLE_INDEX).get() gremlin> m.commit() Rather than moving to a DISABLED state though, my index is now back in the INSTALLED state and I am unable to move it to REGISTERED or DISABLED. I've tried issuing additional commands to DISABLE or even REGISTER the index but they all time out and the status never changes from INSTALLED. gremlin> m = graph.openManagement() gremlin> i = m.getGraphIndex('byNameComposite') gremlin> i.getIndexStatus(m.getPropertyKey('name')) ==>INSTALLED gremlin> m.rollback() gremlin> m.updateIndex(i, SchemaAction.REMOVE_INDEX).get() Update action [REMOVE_INDEX] cannot be invoked for index with status [INSTALLED] I'm currently the only user on this server. I've performed rollbacks just to be certain and insured that there are no other open instances. Anytime I issue an awaitGraphIndexStatus it times out and the status never changes. What's the proper way to get this index to move out of the INSTALLED status? Alternatively, what might be blocking that from occuring if it is supposed to happen automatically? gremlin> graph.getOpenTransactions() ==>standardjanusgraphtx[0x18489ed6] gremlin> graph.tx().rollback() ==>null gremlin> graph.getOpenTransactions() ==>standardjanusgraphtx[0x18489ed6] gremlin> graph.openManagement().getOpenInstances() ==>0a7f01141301102-dcwidphiat002-edc-nam-gm-com1(current) gremlin> graph.openManagement().awaitGraphIndexStatus(graph, 'byNameComposite').call() Script evaluation exceeded the configured 'scriptEvaluationTimeout' threshold of 30000 ms or evaluation wa request [graph.openManagement().awaitGraphIndexStatus(graph, 'byNameComposite').call()]: sleep interrupte Any help for the new guy (me) would be very much appreciated!
|
||
|