| Name | hashedixsearch JSON |
| Version |
1.2.4
JSON |
| download |
| home_page | |
| Summary | in-process search-engine for python |
| upload_time | 2023-11-11 17:49:16 |
| maintainer | |
| docs_url | None |
| author | |
| requires_python | >=3.8 |
| license | AGPL-3.0-or-later |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# hashedixsearch
`hashedixsearch` is a lightweight in-process search engine for Python, with support for stemming, custom token analyzers, and query match highlighting.
## Usage
```python
from hashedixsearch import HashedIXSearch
doc = 'find the needle in the haystack'
index = HashedIXSearch()
index.add(doc_id=1, doc=doc)
results = index.query_batch(['find'])
for query, hits in results:
for hit in hits:
# <mark>find</mark> the needle in the haystack
markup = index.highlight(doc=doc, terms=hit['terms'])
```
This library uses [hashedindex](https://github.com/MichaelAquilina/hashedindex.git/) for tokenization and indexing.
Raw data
{
"_id": null,
"home_page": "",
"name": "hashedixsearch",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "",
"author_email": "James Addison <james@reciperadar.com>",
"download_url": "https://files.pythonhosted.org/packages/31/57/3c89459dad55f43ec51487c37876d7abdf6a3aef5f4482c391acaffa1105/hashedixsearch-1.2.4.tar.gz",
"platform": null,
"description": "# hashedixsearch\n\n`hashedixsearch` is a lightweight in-process search engine for Python, with support for stemming, custom token analyzers, and query match highlighting.\n\n## Usage\n\n```python\nfrom hashedixsearch import HashedIXSearch\n\ndoc = 'find the needle in the haystack'\n\nindex = HashedIXSearch()\nindex.add(doc_id=1, doc=doc)\n\nresults = index.query_batch(['find'])\nfor query, hits in results:\n for hit in hits:\n # <mark>find</mark> the needle in the haystack\n markup = index.highlight(doc=doc, terms=hit['terms'])\n```\n\nThis library uses [hashedindex](https://github.com/MichaelAquilina/hashedindex.git/) for tokenization and indexing.\n",
"bugtrack_url": null,
"license": "AGPL-3.0-or-later",
"summary": "in-process search-engine for python",
"version": "1.2.4",
"project_urls": {
"Homepage": "https://pypi.org/project/hashedixsearch/",
"Source": "https://github.com/openculinary/hashedixsearch.git/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "31573c89459dad55f43ec51487c37876d7abdf6a3aef5f4482c391acaffa1105",
"md5": "1f43174bc3dea65c7ca98851d1c03b9d",
"sha256": "53ec029cb0fe28d7fcc29226ec97ba10df2c5c82925e4b45c7b898fba2a7b28d"
},
"downloads": -1,
"filename": "hashedixsearch-1.2.4.tar.gz",
"has_sig": false,
"md5_digest": "1f43174bc3dea65c7ca98851d1c03b9d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 17129,
"upload_time": "2023-11-11T17:49:16",
"upload_time_iso_8601": "2023-11-11T17:49:16.894649Z",
"url": "https://files.pythonhosted.org/packages/31/57/3c89459dad55f43ec51487c37876d7abdf6a3aef5f4482c391acaffa1105/hashedixsearch-1.2.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-11 17:49:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "openculinary",
"github_project": "hashedixsearch",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"tox": true,
"lcname": "hashedixsearch"
}