cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Lucene’s MoreLikeThis feature

neo4joe
Node Clone

As of Neo4j 3.5 we have a fulltext search index. Specifically it’s Lucene 5.5.5. In Lucene 5.5.4 a magical feature was added to Lucene called MoreLikeThis. Given a document (translates to a node with properties containing text strings) this feature will find all other documents that are most like it in comparison to the entire collection of documents in question.
I would like to experiment with this Lucene feature. How can I call that function from Cypher? Is it present out of the box with Neo4j? Do I have to import it?

1 ACCEPTED SOLUTION

That functionality is not available via Cypher. Technically it should be possible by using private APIs to get a reference to the IndexReader instance and then use a stored procedure implementing code inspired by https://dzone.com/articles/lucene-morelikethis-example.
I consider this an interesting feature for apoc. Do you mind creating a github issue for this at https://github.com/neo4j-contrib/neo4j-apoc-procedures/issues ?

View solution in original post

4 REPLIES 4

That functionality is not available via Cypher. Technically it should be possible by using private APIs to get a reference to the IndexReader instance and then use a stored procedure implementing code inspired by https://dzone.com/articles/lucene-morelikethis-example.
I consider this an interesting feature for apoc. Do you mind creating a github issue for this at https://github.com/neo4j-contrib/neo4j-apoc-procedures/issues ?

I'll investigate on it but cannot commit on a timeline yet - being "slightly" busy.

We're happy to assist with testing.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online