Co-exist @-prefixes for management commands. Resolve 2353.
This commit is contained in:
parent
297daf5492
commit
7cfb9e3b42
18 changed files with 840 additions and 711 deletions
|
|
@ -102,6 +102,7 @@ class FileHelpEntry:
|
|||
"key": self.key,
|
||||
"aliases": " ".join(self.aliases),
|
||||
"category": self.help_category,
|
||||
"no_prefix": "",
|
||||
"tags": "",
|
||||
"locks": "",
|
||||
"text": self.entrytext,
|
||||
|
|
|
|||
|
|
@ -139,6 +139,7 @@ class HelpEntry(SharedMemoryModel):
|
|||
return {
|
||||
"key": self.db_key,
|
||||
"aliases": " ".join(self.aliases.all()),
|
||||
"no_prefix": "",
|
||||
"category": self.db_help_category,
|
||||
"text": self.db_entrytext,
|
||||
"tags": " ".join(str(tag) for tag in self.tags.all()),
|
||||
|
|
|
|||
|
|
@ -71,7 +71,8 @@ def help_search_with_index(query, candidate_entries, suggestion_maxnum=5, fields
|
|||
pass
|
||||
|
||||
custom_stop_words_filter = stop_word_filter.generate_stop_word_filter(stop_words)
|
||||
_LUNR_BUILDER_PIPELINE = (trimmer, custom_stop_words_filter, stemmer)
|
||||
# _LUNR_BUILDER_PIPELINE = (trimmer, custom_stop_words_filter, stemmer)
|
||||
_LUNR_BUILDER_PIPELINE = (custom_stop_words_filter, stemmer)
|
||||
|
||||
indx = [cnd.search_index_entry for cnd in candidate_entries]
|
||||
mapping = {indx[ix]["key"]: cand for ix, cand in enumerate(candidate_entries)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue