RedisGraph 2 Adds Full Text Search
Written by Kay Ewbank   
Tuesday, 21 April 2020

RedisGraph, the graph database model for Redis, has been updated. The new edition supports full-text searching, full-graph response to queries, and enhancements to the Cypher query language.

RedisGraph takes a different approach to other graph databases, translating the Cypher query language to matrix operations executed over a GraphBLAS-based engine. By using sparse matrices to represent graphs and GraphBLAS to process them, RedisGraph to manages and processes graph data faster than other graph databases, according to the developers. redisgraph

RedisGraph is based on the property graph model, and its nodes and relationships (vertices and edges) can have attributes, and nodes can be labeled. It uses Cypher as its query language, and Cypher queries are translated into linear algebra expressions. Cypher is a declarative, SQL-inspired language for describing patterns in graphs visually using an ascii-art syntax.

New in this release is support for full-text search on property values. A low-level API was added in Redis 1.6 that supports the use of RediSearch for secondary indexing and full-text search purposes, and this has now been fully incorporated across all modules. Until now, RedisGraph index searching was limited to exact matches and did not allow for prefix or fuzzy matching. There was also no way to use two separate indexes on a given label as compound indexes.

The improvement extends to the ability to combine the nodes returned with a match expression to further qualify the search results, known as graph-aided search. The developers say one example of graph-aided search is finding someone who is connected to an individual by a certain number of degrees of separation. A common example of this is the search functionality in LinkedIn, where people who are more closely connected to you are listed towards the top of the search matches.

Full graph response in RedisGraph 2

 

Full-graph response has also been added to the new version, meaning queries can return nodes and relations directly. Previous releases returned a tabular result of properties values, but RedisGraph 2.0 can now return nodes, relations, and other data types. The developers say this will make it possible to carry out Object Graph Mapping (OGM), querying subgraphs, and visualizations where the receiving application needs all the nodes and their relationships.

Cypher has also been improved in this release, with extra operators and functions, support for simple case statements, enhanced merge support, counting of aggregates, support for naming paths, and reusing entities in pattern matching.

redisgraph

More Information

RedisGraph Website

Related Articles

RedisGraph Reaches General Availability

Graph Query Language Gets Official Adoption

Redis Adds Streams Support

Microsoft Expands Redis Support 

No Bug Fixes In Redis 2.8.9

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Bun Shell Released
29/02/2024

The developers of the Bun JavaScript runtime have released Bun Shell, a new experimental embedded language and interpreter in Bun that lets you run cross-platform shell scripts in JavaScript and TypeS [ ... ]



GR00T Could Be The Robot You Have Always Wanted
27/03/2024

We may not have flying cars, but we could well soon have robots that match up to predictions for the 21st century. Nvidia has announced GR00T, a cleverly named project to build robots using foundation [ ... ]


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Tuesday, 21 April 2020 )