2023-04-12 14:41:30 +03:00
|
|
|
Generated from search.py on 2023-04-12 10:09:44.563425
|
2021-10-15 03:25:38 -05:00
|
|
|
|
|
|
|
|
# peeringdb_server.search
|
|
|
|
|
|
|
|
|
|
Search implementation used for the peeringdb top search bar, name
|
|
|
|
|
searches through the api `name_search` filter, as well as advanced
|
|
|
|
|
search functionality.
|
|
|
|
|
|
|
|
|
|
Search logic is handled by django-haystack and whoosh.
|
|
|
|
|
|
|
|
|
|
Refer to search_indexes.py for search index definition.
|
|
|
|
|
|
|
|
|
|
# Functions
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
## search
|
|
|
|
|
`def search(term, autocomplete=False)`
|
|
|
|
|
|
|
|
|
|
Search searchable objects (ixp, network, facility ...) by term.
|
|
|
|
|
|
|
|
|
|
Returns result dict.
|
|
|
|
|
|
2023-05-16 21:04:05 +03:00
|
|
|
---
|