{"id":25081016,"url":"https://github.com/spring-data-search/spring-boot-starter-data-search-mongodb-demo","last_synced_at":"2026-05-06T04:04:06.287Z","repository":{"id":38327837,"uuid":"425862615","full_name":"spring-data-search/spring-boot-starter-data-search-mongodb-demo","owner":"spring-data-search","description":"Demo project for the library https://github.com/spring-data-search/spring-boot-starter-data-search","archived":false,"fork":false,"pushed_at":"2023-03-04T00:00:20.000Z","size":68,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T07:58:52.829Z","etag":null,"topics":["antlr4","java","jpa","mongodb","spring","spring-boot","spring-boot-starter-data-search","spring-data","spring-data-jpa","spring-data-mongodb"],"latest_commit_sha":null,"homepage":"https://github.com/spring-data-search","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spring-data-search.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-11-08T14:08:38.000Z","updated_at":"2022-02-14T12:27:18.000Z","dependencies_parsed_at":"2025-02-07T04:36:25.158Z","dependency_job_id":"6cad76ff-b1c3-4b59-ab8d-fe04f591a4d7","html_url":"https://github.com/spring-data-search/spring-boot-starter-data-search-mongodb-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spring-data-search/spring-boot-starter-data-search-mongodb-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-data-search%2Fspring-boot-starter-data-search-mongodb-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-data-search%2Fspring-boot-starter-data-search-mongodb-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-data-search%2Fspring-boot-starter-data-search-mongodb-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-data-search%2Fspring-boot-starter-data-search-mongodb-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spring-data-search","download_url":"https://codeload.github.com/spring-data-search/spring-boot-starter-data-search-mongodb-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-data-search%2Fspring-boot-starter-data-search-mongodb-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["antlr4","java","jpa","mongodb","spring","spring-boot","spring-boot-starter-data-search","spring-data","spring-data-jpa","spring-data-mongodb"],"created_at":"2025-02-07T04:36:23.770Z","updated_at":"2026-05-06T04:04:06.264Z","avatar_url":"https://github.com/spring-data-search.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Getting Started\n\nThis is a demo project for the library [spring-boot-starter-data-search-mongodb](https://github.com/commerce-io/spring-boot-starter-data-search)\n\n### Online Demo\nThis demo is deployed on [heroku](https://www.heroku.com/) and sleeps after 30 minutes of inactivity. \nYour first request could be slow if it occurs when the application is sleeping. In this case, please retry a few seconds after your first request.\n\n[https://data-search-mongodb-demo.herokuapp.com/customers](https://data-search-mongodb-demo.herokuapp.com/customers?search=birthDate%20%3E:%201988-01-01%20and%20(emailAddress%20:%20/.*gmail.com/%20or%20emailAddress:%20/.*outlook.com/)\u0026page=0\u0026size=100\u0026sort=coins,desc)\n\n### Requirements\n**Java version** 11 or higher (_If java 8 support is needed, please vote for [this issue](https://github.com/commerce-io/spring-boot-starter-data-search/issues/3)_)\n\n**SpringBoot version** 2.1.0 or higher\n\n### Usage\nClone, build and start as any other SpringBoot application.\n\nspring-boot-starter-data-search-mongodb-demo comes with an embedded mongodb and the customers' collection is initialized \non startup with 10000 documents. \n\nIf you want to deactivate the data init, or you want more data for your tests, \nyou can adapt the configuration file.\n\n```properties\ndemo.data-init=true\ndemo.data-size=10000\n```\n\n#### Customer structure\n```json\n{\n    \"id\": \"13e3afc8-0832-41c4-bb12-812e516d0980\",\n    \"ref\": 1966,\n    \"title\": \"Ms.\",\n    \"firstName\": \"Angelique\",\n    \"lastName\": \"VonRueden\",\n    \"emailAddress\": \"angelique.vonrueden@gmail.com\",\n    \"emailAddressVerified\": true,\n    \"birthDate\": \"1989-04-14\",\n    \"addresses\": [\n        {\n            \"streetAddress\": \"942 Charlette Forges\",\n            \"postalCode\": \"98527-5724\",\n            \"city\": \"Stiedemannberg\",\n            \"country\": \"Curaçao\",\n            \"countryCode\": \"CW\"\n        },\n        {\n            \"streetAddress\": \"400 Schamberger Lodge\",\n            \"postalCode\": \"22998\",\n            \"city\": \"Andreshire\",\n            \"country\": \"China\",\n            \"countryCode\": \"CN\"\n        }\n    ],\n    \"coins\": 44.801514,\n    \"createdDate\": \"2021-06-12T11:21:13.897Z\"\n}\n```\n\n#### Search API\n\nBy default, with  [data-search](https://github.com/commerce-io/spring-boot-starter-data-search), all customer fields become searchable. \n```cURL\ncurl -L -X  GET 'http://localhost:8080/customers?search=birthDate \u003e: 1988-01-01 and (emailAddress : /.*gmail.com/ or emailAddress: /.*protonmail.com/)\u0026page=0\u0026size=10\u0026sort=coins,desc'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspring-data-search%2Fspring-boot-starter-data-search-mongodb-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspring-data-search%2Fspring-boot-starter-data-search-mongodb-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspring-data-search%2Fspring-boot-starter-data-search-mongodb-demo/lists"}