Skip to content
Snippets Groups Projects
Commit 619a1b09 authored by Demian Katz's avatar Demian Katz
Browse files

Fix for VUFIND-710 (Invalid YAML syntax in search specs format)

parent 9afa62d7
No related merge requests found
...@@ -37,17 +37,18 @@ ...@@ -37,17 +37,18 @@
# - [howToMunge, weight] # - [howToMunge, weight]
# # The optional FilterQuery section allows you to AND a static query to the # # The optional FilterQuery section allows you to AND a static query to the
# # dynamic query generated using the QueryFields; see JournalTitle below # # dynamic query generated using the QueryFields; see JournalTitle below
# # for an example. This is applied whether we use DismaxFields or # # for an example. This is applied whether we use DismaxFields or
# # QueryFields. # # QueryFields.
# FilterQuery: (optional Lucene filter query) # FilterQuery: (optional Lucene filter query)
# #
# ...etc. # ...etc.
# #
#----------------------------------------------------------------------------------- #-----------------------------------------------------------------------------------
# #
# Within the QueryFields area, fields are OR'd together, unless they're in an # Within the QueryFields area, fields are OR'd together, unless they're in an
# anonymous array, in which case the first element is a two-value array that tells # anonymous array with a numeric instead of alphanumeric key, in which case the
# us what the type (AND or OR) and weight of the whole group should be. # first element is a two-value array that tells us what the type (AND or OR) and
# weight of the whole group should be.
# #
# So, given: # So, given:
# #
...@@ -57,30 +58,30 @@ ...@@ -57,30 +58,30 @@
# - [onephrase, 500] # - [onephrase, 500]
# - [and, 200] # - [and, 200]
# - B: # - B:
# - [and, 100] # - [and, 100]
# - [or, 50] # - [or, 50]
# # Start an anonymous array to group; first element indicates AND grouping # # Start an anonymous array to group; first element indicates AND grouping
# # and a weight of 50 # # and a weight of 50
# - # 0:
# - [AND, 50] # - [AND, 50]
# - C: # - C:
# - [onephrase, 200] # - [onephrase, 200]
# - D: # - D:
# - [onephrase, 300] # - [onephrase, 300]
# # Note the "not" attached to the field name as a minus, and the use of ~ # # Note the "not" attached to the field name as a minus, and the use of ~
# # to mean null ("no special weight") # # to mean null ("no special weight")
# - -E: # - -E:
# - [or, ~] # - [or, ~]
# - D: # - D:
# - [or, 100] # - [or, 100]
# #
# ...and the search string # ...and the search string
# #
# test "one two" # test "one two"
# #
# ...we'd get # ...we'd get
# #
# (A:"test one two"^500 OR # (A:"test one two"^500 OR
# A:(test AND "one two")^ 200 OR # A:(test AND "one two")^ 200 OR
# B:(test AND "one two")^100 OR # B:(test AND "one two")^100 OR
# B:(test OR "one two")^50 # B:(test OR "one two")^50
...@@ -96,7 +97,7 @@ ...@@ -96,7 +97,7 @@
# #
# Munge types are based on the original Solr.php code, and consist of: # Munge types are based on the original Solr.php code, and consist of:
# #
# onephrase: eliminate all quotes and do it as a single phrase. # onephrase: eliminate all quotes and do it as a single phrase.
# testing "one two" # testing "one two"
# ...becomes ("testing one two") # ...becomes ("testing one two")
# #
...@@ -227,7 +228,7 @@ JournalTitle: ...@@ -227,7 +228,7 @@ JournalTitle:
- title_new: - title_new:
- [and, 100] - [and, 100]
- title_old: - title_old:
- [and, ~] - [and, ~]
- series: - series:
- [onephrase, 100] - [onephrase, 100]
- [and, 50] - [and, 50]
...@@ -263,7 +264,7 @@ Title: ...@@ -263,7 +264,7 @@ Title:
- title_new: - title_new:
- [and, 100] - [and, 100]
- title_old: - title_old:
- [and, ~] - [and, ~]
- series: - series:
- [onephrase, 100] - [onephrase, 100]
- [and, 50] - [and, 50]
...@@ -307,7 +308,7 @@ AllFields: ...@@ -307,7 +308,7 @@ AllFields:
- allfields - allfields
- fulltext - fulltext
QueryFields: QueryFields:
- 0:
- [OR, 50] - [OR, 50]
- title_short: - title_short:
- [onephrase, 750] - [onephrase, 750]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment