{"id":13514962,"url":"https://github.com/LinkedInAttic/indextank-engine","last_synced_at":"2025-03-31T04:36:07.244Z","repository":{"id":2077553,"uuid":"3016789","full_name":"LinkedInAttic/indextank-engine","owner":"LinkedInAttic","description":"Indexing engine for IndexTank","archived":false,"fork":false,"pushed_at":"2012-04-19T21:41:46.000Z","size":3648,"stargazers_count":842,"open_issues_count":13,"forks_count":109,"subscribers_count":45,"default_branch":"master","last_synced_at":"2024-05-19T19:10:15.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://indextank.com/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinkedInAttic.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":"2011-12-20T02:43:26.000Z","updated_at":"2024-05-17T16:40:02.000Z","dependencies_parsed_at":"2022-08-27T11:50:57.695Z","dependency_job_id":null,"html_url":"https://github.com/LinkedInAttic/indextank-engine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkedInAttic%2Findextank-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkedInAttic%2Findextank-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkedInAttic%2Findextank-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkedInAttic%2Findextank-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinkedInAttic","download_url":"https://codeload.github.com/LinkedInAttic/indextank-engine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246418658,"owners_count":20773934,"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-01T05:01:04.580Z","updated_at":"2025-03-31T04:36:06.024Z","avatar_url":"https://github.com/LinkedInAttic.png","language":"Java","funding_links":[],"categories":["Java","数据库"],"sub_categories":[],"readme":"About IndexTank Engine\n======================\n\nThis project contains IndexTank (http://indextank.com) search engine implementation.\nIncludes features like variables (boosts), categories (facets), faceted search, snippeting, custom scoring functions, suggest, and autocomplete.\n\nFor IndexTank's full administrative stack (which makes use of this engine) see http://github.com/linkedin/indextank-service\n\n### Homepage:\n\nFind out more about at: TBD\n\n### License:\n\nApache Public License (APL) 2.0\n\n### Artifacts:\n\n1. indextank-engine-1.0.0.jar \u003c-- core library\n\n### Maven:\n\ngroupId: com.flaptor.indextank\n\nartifactId: indextank-engine\n\nversion: 1.0.0\n\nPackage generation:\n-------------------\n\nBuild a single jar containing all dependencies by:\n\n    $ mvn compile package assembly:single\n\nThis will create a single file in:\n\n    target/indextank-engine-1.0.0-jar-with-dependencies.jar\n\nQuick start with the standalone REST API\n----------------------------------------\n\nYou can try basic indexing and searching\n\nMain class: com.flaptor.indextank.api.Launcher\n\nAfter running the package generation:\n\n    $ java -cp target/indextank-engine-1.0.0-jar-with-dependencies.jar com.flaptor.indextank.api.Launcher\n\nThis command starts an API server (http://www.indextank.com/documentation/api) at port 20220.\nThe indexing and searching can be done with any client or for example, via curl:\n\n    $ curl -d \"{\\\"docid\\\":\\\"post1\\\", \\\"fields\\\":{\\\"text\\\":\\\"I love Fallout\\\"}}\" -v -X PUT http://localhost:20220/v1/indexes/idx/docs\n\n    $ curl -d \"{\\\"docid\\\":\\\"post2\\\", \\\"fields\\\":{\\\"text\\\":\\\"I love Planescape\\\"}}\" -v -X PUT http://localhost:20220/v1/indexes/idx/docs\n\n    $ curl http://localhost:20220/v1/indexes/idx/search?q=love\n\nAPI Clients (compatible with the embedded API)\n----------------------------------------------\n\nJava: https://github.com/flaptor/indextank-java\n\nPython: https://github.com/flaptor/indextank-py\n\nRuby: https://github.com/flaptor/indextank-rb\n\nPHP: https://github.com/flaptor/indextank-php\n\nThrift API sample configuration:\n--------------------------------\n\nMain class: com.flaptor.indextank.index.IndexEngine\n\nVM args:\n\n    -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Dorg.apache.lucene.FSDirectory.class=org.apache.lucene.store.MMapDirectory -Xmx600M\n\nProgram args:\n\n    --facets --rti-size 500 --conf-file sample-engine-config --port 20220 --environment-prefix TEST --recover --dir index --snippets --suggest documents --boosts 3 --index-code dgmqn --functions 0:-age\n\nSample engine configuration file contents:\n\n    {\n    \"max_variables\": 3, \n    \"functions\": {\"0\": \"-age\"}, \n    \"index_code\": \"dgmqn\", \n    \"allows_facets\": true, \n    \"ram\": 600, \n    \"log_server_host\": \"index123.localhost\", \n    \"autocomplete\": true,\n    \"log_server_port\": 15100, \n    \"autocomplete_type\": \"documents\",\n    \"allows_snippets\": true, \n    \"rti_size\": 500, \n    \"facets_bits\": 5, \n    \"base_port\": 20220, \n    \"log_based_storage\": false, \n    \"xmx\": 600\n    }\n\nTests:\n------\n\nExecute the following command to run:\n\n    mvn test\n\nAvoid running tests by adding:\n\n    mvn -Dmaven.test.skip=true compile\n\nEclipse:\n--------\n\nSet up Eclipse for this project by executing the command below:\n\n    mvn eclipse:eclipse\n\nInside Eclipse, select Preferences \u003e Java \u003e Build Path \u003e Classpath Variables. Define a new classpath variable M2_REPO and assign maven repository.\n\nFor more information, check out http://maven.apache.org/guides/mini/guide-ide-eclipse.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLinkedInAttic%2Findextank-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLinkedInAttic%2Findextank-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLinkedInAttic%2Findextank-engine/lists"}