{"id":19839355,"url":"https://github.com/redislabs/research","last_synced_at":"2025-10-29T09:51:03.980Z","repository":{"id":68557518,"uuid":"51296029","full_name":"RedisLabs/ReSearch","owner":"RedisLabs","description":"Redis search and indexing in Java","archived":false,"fork":false,"pushed_at":"2016-09-26T21:14:43.000Z","size":110,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-10-19T19:04:59.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedisLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-08T12:13:25.000Z","updated_at":"2025-08-13T11:14:39.000Z","dependencies_parsed_at":"2023-09-13T13:46:08.640Z","dependency_job_id":null,"html_url":"https://github.com/RedisLabs/ReSearch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RedisLabs/ReSearch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2FReSearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2FReSearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2FReSearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2FReSearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedisLabs","download_url":"https://codeload.github.com/RedisLabs/ReSearch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2FReSearch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281600620,"owners_count":26528905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T12:21:59.359Z","updated_at":"2025-10-29T09:51:03.947Z","avatar_url":"https://github.com/RedisLabs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReSearch - Redis Scalable Search Engine\n\n## Overview\n\nResearch is a library wrapping Redis with advanced search capabilities, \nautomating indexing and retrieval.\n\nMain Features include:\n\n* Fast Auto-suggestion using lexical ranges.\n* Multi-facet filters, including ranges and geo-filtering.\n* Designed to scale: Indexes are partitioned across multiple redis instances, \na design which allows scaling across large document sets and multi-machine clusters with ease.\n* Simple API with a structured query builder.\n \n## TL;DR - API Usage Example\n\nHere's what you need to get things going fast:\n\n```java\n\nimport com.redislabs.research.*;\nimport com.redislabs.research.redis.*;\n\n```\n\n### Create an index spec:\n\n```java\n\n// Create an index spec, telling ReSearch how to index documents:\n// this spec tells the engine to create a prefix based index for a property named \"title\",\n// indexing word-suffixes of it for completion as well \nSpec spec = new Spec(Spec.prefix(\"title\", true));\n```\n\n### Create indexes and a document store\n\n```java\n// Create a PartitionedIndex which partitions indexes across multiple cluster nodes\n\n// the number of internal partitions the index has. This should be higher than the number of\n// cluster shards you have.\nint numPartitions = 8;\n// distributed query timeout\nint timeoutMS = 500;\n// redis hosts to connect to\nString[] redisHosts = new String[] {\"redis://localhost:6379\", \"redis://localhost:6380\", ... };\n\nIndex idx = new PartitionedIndex(\"myIndex\", //index name\n        spec, \n        numPartitions, \n        timeout,\n        redisHosts);\n\n\n// Create a document store. The index only retrieves document ids. \n// The store actually holds the documents. This is optional if you want to implement a store yourself\n// JSONStore just stores documents as JSON blobs in redis\nDocumentStore st = new JSONStore(\"redis://localhost:6379\");\n```\n\n### Index some documents\n\n```java\n\nDocument[] docs = {\n        new Document(\"doc1\").set(\"title\", \"Redis in action\")\n            .set(\"description\", \"A book about redis in action\"),\n            \n        new Document(\"doc2\").set(\"title\", \"Redis in traction\")\n            .set(\"description\", \"A book about redis in traction\")\n};            \n\nidx.index(docs); // this call accepts multiple documents and indexes them as a single transaction\n\nst.store(docs); //save the documents in the store\n```\n\n### 5. query the index\n\n```java\n\n// Build a query\nQuery query = new Query(\"myIndex\").filterPrefix(\"title\", \"redis\");\n\n// load the ids\nList\u003cString\u003e ids = idx.get(query);\n\n// load the documents\nList\u003cDocument\u003e docs = st.get(ids);\n```\n\n## Defining Indexes\n\n## Creating Documents\n\n## Retrieving Documents\n\n## Design\n\n## Index Design\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredislabs%2Fresearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredislabs%2Fresearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredislabs%2Fresearch/lists"}