{"id":13508841,"url":"https://github.com/dcarneiro/exsolr","last_synced_at":"2025-03-18T20:30:29.580Z","repository":{"id":62429451,"uuid":"58263751","full_name":"dcarneiro/exsolr","owner":"dcarneiro","description":"Port of RSolr to Elixir","archived":false,"fork":false,"pushed_at":"2019-02-02T11:32:19.000Z","size":92,"stargazers_count":22,"open_issues_count":1,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-02T10:18:10.718Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcarneiro.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}},"created_at":"2016-05-07T11:49:25.000Z","updated_at":"2023-09-01T12:07:36.000Z","dependencies_parsed_at":"2022-11-01T20:03:20.262Z","dependency_job_id":null,"html_url":"https://github.com/dcarneiro/exsolr","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcarneiro%2Fexsolr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcarneiro%2Fexsolr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcarneiro%2Fexsolr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcarneiro%2Fexsolr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcarneiro","download_url":"https://codeload.github.com/dcarneiro/exsolr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243949790,"owners_count":20373651,"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","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-08-01T02:00:59.279Z","updated_at":"2025-03-18T20:30:29.257Z","avatar_url":"https://github.com/dcarneiro.png","language":"Elixir","funding_links":[],"categories":["ORM and Datamapping"],"sub_categories":[],"readme":"# Exsolr\n\nPort of [RSolr](https://github.com/rsolr/rsolr) to Elixir\n\n## Installation\n\n  1. Add exsolr to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:exsolr, git: \"http://github.com/dcarneiro/exsolr\"}]\nend\n```\n\n  2. Ensure exsolr is started before your application:\n\n        def application do\n          [applications: [:exsolr]]\n        end\n\n## Configuration\n\nThe default behaviour is to configure using the config file:\n\nIn `config/config.exs`, add:\n\n```elixir\nconfig :exsolr,\n  hostname: \"localhost\",\n  port: 8983,\n  core: \"elixir_test\"\n```\n\n## Querying\n\nUse #get to perform a query into Solr. All parameters are optional\n\n```elixir\nresponse = Exsolr.get(q: \"roses\", fq: [\"blue\", \"violet\"])\nEnum.map(response[\"docs\"], fn(doc) -\u003e doc[\"id\"] end)\n```\n\nThe following query fields will have default values if they aren't specified\n\n```elixir\nq:     \"*:*\"\nwt:    \"json\"\nstart: 0\nrows:  10\n```\n\n## Indexing documents into Solr\n\nSingle document via #add\n\n```elixir\n  Exsolr.add(%{id: 1, price: 1.00})\n```\n\nMultiple documents via #add\n\n```elixir\n  [%{id: 1, price: 1.00}, %{id: 2, price: 10.50}]\n  |\u003e Exsolr.add\n```\n\nForce a commit into Solr\n\n```elixir\nExsolr.commit\n```\n\n## Deleting\n\nDelete by id\n\n```elixir\nExsolr.delete_by_id(\"1\")\n```\n\nDelete all the documents from the core\n\n```elixir\nExsolr.delete_all\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcarneiro%2Fexsolr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcarneiro%2Fexsolr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcarneiro%2Fexsolr/lists"}