MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / SQ

Class SQ

haystack/backends/__init__.py:442–451  ·  view source on GitHub ↗

Manages an individual condition within a query. Most often, this will be a lookup to ensure that a certain word or phrase appears in the documents being indexed. However, it also supports filtering types (such as 'lt', 'gt', 'in' and others) for more complex lookups.

Source from the content-addressed store, hash-verified

440
441
442class SQ(Q, SearchNode):
443 """
444 Manages an individual condition within a query.
445
446 Most often, this will be a lookup to ensure that a certain word or phrase
447 appears in the documents being indexed. However, it also supports filtering
448 types (such as 'lt', 'gt', 'in' and others) for more complex lookups.
449 """
450
451 pass
452
453
454class BaseSearchQuery:

Callers 15

excludeMethod · 0.90
filter_andMethod · 0.90
filter_orMethod · 0.90
autocompleteMethod · 0.90
test_split_expressionMethod · 0.90
test_reprMethod · 0.90
test_simple_nestingMethod · 0.90
test_get_countMethod · 0.90
test_build_queryMethod · 0.90
test_add_filterMethod · 0.90
test_cloneMethod · 0.90
test_log_queryMethod · 0.90

Calls

no outgoing calls

Tested by 15

test_split_expressionMethod · 0.72
test_reprMethod · 0.72
test_simple_nestingMethod · 0.72
test_get_countMethod · 0.72
test_build_queryMethod · 0.72
test_add_filterMethod · 0.72
test_cloneMethod · 0.72
test_log_queryMethod · 0.72
test_altered_namesMethod · 0.68