{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"}],"enrichment":{"capability":"Parses Lucene Query DSL syntax into an abstract syntax tree, enabling inspection, analysis, and transformation of search queries for use with Elasticsearch or custom backends.","skillfed_tags":["query-parsing","elasticsearch","lucene"],"use_cases":["Transform user-facing Lucene query syntax into Elasticsearch JSON DSL for backend execution.","Validate and analyze Lucene queries before sending them to a search engine.","Enrich or rewrite Lucene queries programmatically (e.g., add field restrictions, rewrite operators).","Build query visualization or debugging tools that explain why a query matches certain results.","Support nested object searches or custom field treatments by intercepting and modifying the query tree."],"what_it_does":"Luqum is a Lucene Query DSL parser that builds an abstract syntax tree from Lucene query strings, allowing you to inspect, analyze, and programmatically manipulate search queries. It depends only on PLY (Python Lex-Yacc) and runs on Python 3.10+. The primary use case is transforming user-written Lucene queries into Elasticsearch JSON DSL, while also supporting custom transformations and enrichments\u2014for example, adding support for nested object searches or applying field-specific query logic.\n\nThe package has been actively developed since 2016, recently reaching version 1.0.0 (2025-02-18) with support for Python 3.11, 3.12, and 3.13. It handles a range of Lucene features including boolean operations, proximity and fuzzy matching, range queries, wildcards, and escape sequences. The dual Apache 2.0 / LGPLv3+ licensing provides flexibility for most projects, though the package metadata does not yet clearly expose which license applies.","worth_installing":"Yes. Luqum is actively maintained, has low install friction, carries no known vulnerabilities, and solves a specific problem well: parsing and transforming Lucene queries. Install it if you need to accept Lucene syntax from users and convert it to Elasticsearch or apply custom query logic. Verify the dual license terms (Apache 2.0 / LGPLv3+) match your project's requirements before committing."},"id":"luqum","links":{"html":"https://skillfed.io/packages/luqum","md":"https://skillfed.io/packages/luqum.md","pypi":"https://pypi.org/project/luqum/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-02-18","license_spdx":null,"license_treatment":"unclear","name":"luqum","python_support":"unspecified","summary":"A Lucene query parser generating ElasticSearch queries and more !"},"popularity":{"monthly_downloads":2388566,"position":3091,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
