Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
54d8d08b
Commit
54d8d08b
authored
Sep 04, 2014
by
Gergely Ujvari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unicode normalization for ES
parent
50238f8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
searchfilters.coffee
h/static/scripts/searchfilters.coffee
+10
-1
No files found.
h/static/scripts/searchfilters.coffee
View file @
54d8d08b
...
@@ -169,7 +169,7 @@ class SearchFilter
...
@@ -169,7 +169,7 @@ class SearchFilter
#
#
# options: backend specific options
# options: backend specific options
# options.es: elasticsearch specific options
# options.es: elasticsearch specific options
# options.es.query_type : can be: simple, query_string, match, multi_match
# options.es.query_type : can be: simple
(term)
, query_string, match, multi_match
# defaults to: simple, determines which es query type to use
# defaults to: simple, determines which es query type to use
# options.es.cutoff_frequency: if set, the query will be given a cutoff_frequency for this facet
# options.es.cutoff_frequency: if set, the query will be given a cutoff_frequency for this facet
# options.es.and_or: match and multi_match queries can use this, defaults to and
# options.es.and_or: match and multi_match queries can use this, defaults to and
...
@@ -187,14 +187,23 @@ class QueryParser
...
@@ -187,14 +187,23 @@ class QueryParser
path
:
'/text'
path
:
'/text'
case_sensitive
:
false
case_sensitive
:
false
and_or
:
'and'
and_or
:
'and'
options
:
es
:
query_type
:
'match'
tag
:
tag
:
path
:
'/tags'
path
:
'/tags'
case_sensitive
:
false
case_sensitive
:
false
and_or
:
'and'
and_or
:
'and'
options
:
es
:
query_type
:
'match'
quote
:
quote
:
path
:
'/quote'
path
:
'/quote'
case_sensitive
:
false
case_sensitive
:
false
and_or
:
'and'
and_or
:
'and'
options
:
es
:
query_type
:
'match'
uri
:
uri
:
formatter
:
(
uri
)
->
formatter
:
(
uri
)
->
uri
.
toLowerCase
()
uri
.
toLowerCase
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment