dosubot[bot] commented on issue #2936: URL: https://github.com/apache/incubator-hugegraph/issues/2936#issuecomment-3717952574
<!-- Answer --> This is a known limitation in HugeGraph 1.7.0. The NoIndexException occurs because HugeGraph enforces strict index requirements for properties used in filters, especially for secondary, range, and not-equal conditions. When these filters appear inside a match() or repeat() step, HugeGraph's query planner treats them differently from top-level has() steps: filters inside match()/repeat() are evaluated in-memory after data retrieval, but the backend still checks for required indexes and throws NoIndexException if they're missing. In contrast, top-level filters are pushed into the backend query and may behave differently depending on the traversal structure. This leads to inconsistent behavior between logically equivalent queries using out() versus match()/repeat() steps, unlike JanusGraph or TinkerPop, which do not enforce index requirements in the same way and return consistent results for both forms. There is currently no official fix or workaround; this is a known area for improv ement in HugeGraph's query planner design as of 1.7.0. For now, ensure all filtered properties are indexed or use query forms that avoid triggering this limitation. [See related discussion and technical details](https://github.com/apache/incubator-hugegraph/issues/2929) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/4dbdacb2-16f7-4a1f-b026-6e95eabee50c?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/4dbdacb2-16f7-4a1f-b026-6e95eabee50c?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/4dbdacb2-16f7-4a1f-b026-6e95eabee50c?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/4dbdacb2-16f7-4a1f-b026-6e95eabee50c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4dbdacb2-16f7-4a1f-b026-6e95eabee50c?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/4dbdacb2-16f7-4a1f-b026-6e95eabee50c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4dbdacb2-16f7-4a1f-b026-6e95eabee50c?feedback_type=other)</sup> [](https://app.dosu.dev/e5e246fa-a522-4d8a-ab3c-e2588b5b501b/ask?utm_source=github) [](https://cursor.com/link/prompt?text=This%20is%20a%20known%20limitation%20in%20HugeGraph%201.7.0.%20The%20NoIndexException%20occurs%20because%20HugeGraph%20enforces%20strict%20index%20requirements%20for%20properties%20used%20in%20filters%2C%20especially%20for%20secondary%2C%20range%2C%20and%20not-equal%20conditions.%20When%20these%20filters%20appear%20inside%20a%20match%28%29%20or%20repeat%28%29%20step%2C%20HugeGraph%27s%20query%20planner%20treats%20them%20differently%20from%20top-level%20has%28%29%20steps%3A%20filters%20inside%20match%28%29/repeat%28%29%20are%20evaluated%20in-memory%20after%20data%20retrieval%2C%20but%20the%20backend%20still%20checks%20for%20required%20indexes%20and%20throws%20NoIndexException%20if%20they%27re%20missing.%20In%20contrast%2C%20top-level%20filters%20are %20pushed%20into%20the%20backend%20query%20and%20may%20behave%20differently%20depending%20on%20the%20traversal%20structure.%20This%20leads%20to%20inconsistent%20behavior%20between%20logically%20equivalent%20queries%20using%20out%28%29%20versus%20match%28%29/repeat%28%29%20steps%2C%20unlike%20JanusGraph%20or%20TinkerPop%2C%20which%20do%20not%20enforce%20index%20requirements%20in%20the%20same%20way%20and%20return%20consistent%20results%20for%20both%20forms.%20There%20is%20currently%20no%20official%20fix%20or%20workaround%3B%20this%20is%20a%20known%20area%20for%20improvement%20in%20HugeGraph%27s%20query%20planner%20design%20as%20of%201.7.0.%20For%20now%2C%20ensure%20all%20filtered%20properties%20are%20indexed%20or%20use%20query%20forms%20that%20avoid%20triggering%20this%20limitation.%20%20%0A%5BSee%20related%20discussion%20and%20technical%20details%5D%28https%3A//github.com/apache/incubator-hugegraph/issues/2929%29) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-hugegraph/issues/2936) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
