{"id":13798300,"url":"https://github.com/chimpler/hive-solr","last_synced_at":"2025-09-01T20:16:04.286Z","repository":{"id":7321771,"uuid":"8640733","full_name":"chimpler/hive-solr","owner":"chimpler","description":"Hive Storage Handler for SOLR","archived":false,"fork":false,"pushed_at":"2014-03-17T02:42:16.000Z","size":170,"stargazers_count":16,"open_issues_count":1,"forks_count":26,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-13T05:42:20.705Z","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":"gist-run/gist-run","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chimpler.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}},"created_at":"2013-03-08T01:41:33.000Z","updated_at":"2024-05-06T15:14:06.000Z","dependencies_parsed_at":"2022-08-24T22:12:37.513Z","dependency_job_id":null,"html_url":"https://github.com/chimpler/hive-solr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chimpler/hive-solr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chimpler%2Fhive-solr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chimpler%2Fhive-solr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chimpler%2Fhive-solr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chimpler%2Fhive-solr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chimpler","download_url":"https://codeload.github.com/chimpler/hive-solr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chimpler%2Fhive-solr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273183240,"owners_count":25059814,"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-09-01T02:00:09.058Z","response_time":120,"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-08-04T00:00:41.533Z","updated_at":"2025-09-01T20:16:04.265Z","avatar_url":"https://github.com/chimpler.png","language":"Java","readme":"Installation\n============\n\nTo install:\n\n\t$ git clone http://github.org/chimpler/hive-solr\n\t$ cd hive-solr\n\t$ mvn package\n\t$ cp target/hive-solr-0.0.1-SNAPSHOT-jar-with-dependencies.jar `$HIVE_HOME/lib`\n\nUsage\n=====\n\nIf your SOLR schema is something like:\n\n\t\u003c?xml version=\"1.0\" ?\u003e\n\t\u003cschema name=\"segment_overlap\" version=\"1.1\"\u003e\n\t  \u003ctypes\u003e\n\t   \u003cfieldtype name=\"string\" class=\"solr.StrField\" sortMissingLast=\"true\" omitNorms=\"true\"/\u003e\n\t   \u003cfieldType name=\"int\" class=\"solr.TrieIntField\" precisionStep=\"0\" positionIncrementGap=\"0\"/\u003e\n\t   \u003cfieldType name=\"float\" class=\"solr.TrieFloatField\" precisionStep=\"0\" positionIncrementGap=\"0\"/\u003e\n\t   \u003cfieldType name=\"long\" class=\"solr.TrieLongField\" precisionStep=\"0\" positionIncrementGap=\"0\"/\u003e\n\t   \u003cfieldType name=\"double\" class=\"solr.TrieDoubleField\" precisionStep=\"0\" positionIncrementGap=\"0\"/\u003e\n\t  \u003c/types\u003e\n\n\t \u003cfields\u003e\n\t   \u003cfield name=\"id\" type=\"int\" indexed=\"true\" stored=\"true\" required=\"true\" /\u003e\n\t   \u003cfield name=\"_version_\" type=\"long\" indexed=\"true\" stored=\"true\" required=\"true\" /\u003e\n\t   \u003cfield name=\"item_id\" type=\"int\" indexed=\"true\" stored=\"true\" required=\"true\" /\u003e\n\t   \u003cfield name=\"name\" type=\"string\" indexed=\"true\" stored=\"true\" required=\"true\" /\u003e\n\t   \u003cfield name=\"year\" type=\"int\" indexed=\"true\" stored=\"true\" required=\"true\" /\u003e\n\t   \u003cfield name=\"month\" type=\"int\" indexed=\"true\" stored=\"true\" required=\"true\" /\u003e\n\t   \u003cfield name=\"shipping_method\" type=\"int\" indexed=\"true\" stored=\"true\" required=\"true\" /\u003e\n\t   \u003cfield name=\"us_sold\" type=\"int\" indexed=\"true\" stored=\"true\" required=\"true\" /\u003e\n\t   \u003cfield name=\"ca_sold\" type=\"int\" indexed=\"true\" stored=\"true\" required=\"true\" /\u003e\n\t   \u003cfield name=\"fr_sold\" type=\"int\" indexed=\"true\" stored=\"true\" required=\"true\" /\u003e\n\t   \u003cfield name=\"uk_sold\" type=\"int\" indexed=\"true\" stored=\"true\" required=\"true\" /\u003e\n\t \u003c/fields\u003e\n\n\t \u003c!-- field to use to determine and enforce document uniqueness. --\u003e\n\t \u003cuniqueKey\u003eid\u003c/uniqueKey\u003e\n\n\t \u003c!-- field for the QueryParser to use when an explicit fieldname is absent --\u003e\n\t \u003cdefaultSearchField\u003ename\u003c/defaultSearchField\u003e\n\n\t \u003c!-- SolrQueryParser configuration: defaultOperator=\"AND|OR\" --\u003e\n\t \u003csolrQueryParser defaultOperator=\"AND\"/\u003e\n\t\u003c/schema\u003e\n\nYou can create an external table as follows:\n\n\thive\u003e create external table solr_items2 (\n\t    id INT,\n\t    item_id INT,\n\t    name STRING,\n\t    year INT,\n\t    month INT,\n\t    shipping_method INT,\n\t    us_sold INT,\n\t    ca_sold INT,\n\t    fr_sold INT,\n\t    uk_sold INT\n\t) stored by \"com.chimpler.hive.solr.SolrStorageHandler\"\n\twith serdeproperties (\"solr.column.mapping\"=\"id,item_id,name,year,month,shipping_method,us_sold,ca_sold,fr_sold,uk_sold\")\n\ttblproperties (\"solr.url\" = \"http://localhost:8983/solr/core0\",\"solr.buffer.input.rows\"=\"10000\",\"solr.buffer.output.rows\"=\"10000\");\n\nNote that solr.buffer.input.rows and solr.buffer.output.rows are optional (default is 100000).\n\nAcknowledgements\n================\n\nThank you to yc-huang for his work on hive-mongo (https://github.com/yc-huang/Hive-mongo) that served as a base for hive-solr.\n","funding_links":[],"categories":["Storage Hadndlers"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchimpler%2Fhive-solr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchimpler%2Fhive-solr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchimpler%2Fhive-solr/lists"}