Skip to content
Snippets Groups Projects
Commit 8e34f7ce authored by Demian Katz's avatar Demian Katz Committed by GitHub
Browse files

Use eDismax in all eligible search specifications. (#763)

parent bf1fab37
No related merge requests found
...@@ -11,23 +11,7 @@ AllFields: ...@@ -11,23 +11,7 @@ AllFields:
- allfields - allfields
DismaxParams: DismaxParams:
- [bq, (record_type:"Personal Name" OR record_type:"Corporate Name")^500] - [bq, (record_type:"Personal Name" OR record_type:"Corporate Name")^500]
QueryFields: DismaxHandler: edismax
heading_keywords:
- [onephrase, 1000]
- [and, 750]
- [or, 10]
use_for_keywords:
- [onephrase, 500]
- [and, 400]
- [or, 5]
see_also_keywords:
- [onephrase, 130]
- [and, 100]
- [or, 2]
allfields:
- [onephrase, 50]
- [and, 10]
- [or, ~]
Heading: Heading:
DismaxFields: DismaxFields:
...@@ -36,27 +20,11 @@ Heading: ...@@ -36,27 +20,11 @@ Heading:
- see_also_keywords^100 - see_also_keywords^100
DismaxParams: DismaxParams:
- [bq, (record_type:"Personal Name" OR record_type:"Corporate Name")^500] - [bq, (record_type:"Personal Name" OR record_type:"Corporate Name")^500]
QueryFields: DismaxHandler: edismax
heading_keywords:
- [onephrase, 1000]
- [and, 750]
- [or, 10]
use_for_keywords:
- [onephrase, 500]
- [and, 400]
- [or, 5]
see_also_keywords:
- [onephrase, 130]
- [and, 100]
- [or, 2]
MainHeading: MainHeading:
DismaxFields: DismaxFields:
- heading_keywords^750 - heading_keywords^750
DismaxParams: DismaxParams:
- [bq, (record_type:"Personal Name" OR record_type:"Corporate Name")^500] - [bq, (record_type:"Personal Name" OR record_type:"Corporate Name")^500]
QueryFields: DismaxHandler: edismax
heading_keywords:
- [onephrase, 1000]
- [and, 750]
- [or, 10]
...@@ -8,40 +8,19 @@ AllFields: ...@@ -8,40 +8,19 @@ AllFields:
- course^400 - course^400
- instructor^400 - instructor^400
- department^200 - department^200
QueryFields: DismaxHandler: edismax
course:
- [onephrase, 1000]
- [and, 750]
- [or, 10]
instructor:
- [onephrase, 1000]
- [and, 750]
- [or, 10]
department:
- [onephrase, 1000]
- [and, 750]
- [or, 10]
Instructor: Instructor:
DismaxFields: DismaxFields:
- instructor^400 - instructor^400
QueryFields: DismaxHandler: edismax
instructor:
- [onephrase, 1000]
- [and, 750]
- [or, 10]
Course: Course:
DismaxFields: DismaxFields:
- course^400 - course^400
QueryFields: DismaxHandler: edismax
course:
- [onephrase, 1000]
- [and, 750]
- [or, 10]
Department: Department:
DismaxFields: DismaxFields:
- department^400 - department^400
QueryFields: DismaxHandler: edismax
department:
- [onephrase, 1000]
- [and, 750]
- [or, 10]
...@@ -174,51 +174,13 @@ Author: ...@@ -174,51 +174,13 @@ Author:
- author_corporate - author_corporate
- author_variant - author_variant
- author2_variant - author2_variant
QueryFields: DismaxHandler: edismax
author:
- [onephrase, 350]
- [and, 200]
- [or, 100]
author_fuller:
- [onephrase, 200]
- [and, 100]
- [or, 50]
author2:
- [onephrase, 100]
- [and, 50]
- [or, ~]
author2_fuller:
- [onephrase, 100]
- [and, 50]
- [or, ~]
author_additional:
- [onephrase, 100]
- [and, 50]
- [or, ~]
author_corporate:
- [onephrase, 100]
- [and, 50]
- [or, ~]
author_variant:
- [onephrase, 100]
- [and, 50]
- [or, ~]
author2_variant:
- [onephrase, 100]
- [and, 50]
- [or, ~]
ISN: ISN:
DismaxFields: DismaxFields:
- isbn - isbn
- issn - issn
QueryFields: DismaxHandler: edismax
issn:
- [and, 100]
- [or, ~]
isbn:
- [and, 100]
- [or, ~]
Subject: Subject:
DismaxFields: DismaxFields:
...@@ -227,34 +189,10 @@ Subject: ...@@ -227,34 +189,10 @@ Subject:
- geographic^50 - geographic^50
- genre^50 - genre^50
- era - era
QueryFields: DismaxHandler: edismax
topic_unstemmed:
- [onephrase, 350]
- [and, 150]
- [or, ~]
topic:
- [onephrase, 300]
- [and, 100]
- [or, ~]
geographic:
- [onephrase, 300]
- [and, 100]
- [or, ~]
genre:
- [onephrase, 300]
- [and, 100]
- [or, ~]
era:
- [and, 100]
- [or, ~]
# ExactSettings: # ExactSettings:
# DismaxFields: # DismaxFields:
# - topic_unstemmed^150 # - topic_unstemmed^150
# QueryFields:
# - topic_unstemmed:
# - [onephrase, 350]
# - [and, 150]
# - [or, ~]
# This field definition is a compromise that supports both journal-level and # This field definition is a compromise that supports both journal-level and
# article-level data. The disadvantage is that hits in article titles will # article-level data. The disadvantage is that hits in article titles will
...@@ -273,40 +211,11 @@ JournalTitle: ...@@ -273,40 +211,11 @@ JournalTitle:
- title_old - title_old
- series^100 - series^100
- series2 - series2
QueryFields: DismaxHandler: edismax
title_short:
- [onephrase, 500]
title_full_unstemmed:
- [onephrase, 450]
- [and, 400]
title_full:
- [onephrase, 400]
title:
- [onephrase, 300]
- [and, 250]
container_title:
- [onephrase, 275]
- [and, 225]
title_alt:
- [and, 200]
title_new:
- [and, 100]
title_old:
- [and, ~]
series:
- [onephrase, 100]
- [and, 50]
series2:
- [onephrase, 50]
- [and , ~]
FilterQuery: "format:Journal OR format:Article" FilterQuery: "format:Journal OR format:Article"
# ExactSettings: # ExactSettings:
# DismaxFields: # DismaxFields:
# - title_full_unstemmed^450 # - title_full_unstemmed^450
# QueryFields:
# - title_full_unstemmed:
# - [onephrase, 450]
# - [and, 400]
# FilterQuery: "format:Journal OR format:Article" # FilterQuery: "format:Journal OR format:Article"
Title: Title:
...@@ -320,50 +229,16 @@ Title: ...@@ -320,50 +229,16 @@ Title:
- title_old - title_old
- series^100 - series^100
- series2 - series2
QueryFields: DismaxHandler: edismax
title_short:
- [onephrase, 500]
title_full_unstemmed:
- [onephrase, 450]
- [and, 400]
title_full:
- [onephrase, 400]
title:
- [onephrase, 300]
- [and, 250]
title_alt:
- [and, 200]
title_new:
- [and, 100]
title_old:
- [and, ~]
series:
- [onephrase, 100]
- [and, 50]
series2:
- [onephrase, 50]
- [and , ~]
# ExactSettings: # ExactSettings:
# DismaxFields: # DismaxFields:
# - title_full_unstemmed^450 # - title_full_unstemmed^450
# QueryFields:
# - title_full_unstemmed:
# - [onephrase, 450]
# - [and, 400]
Series: Series:
DismaxFields: DismaxFields:
- series^100 - series^100
- series2 - series2
QueryFields: DismaxHandler: edismax
series:
- [onephrase, 500]
- [and, 200]
- [or, 100]
series2:
- [onephrase, 50]
- [and, 50]
- [or, ~]
AllFields: AllFields:
DismaxFields: DismaxFields:
...@@ -389,64 +264,7 @@ AllFields: ...@@ -389,64 +264,7 @@ AllFields:
- description - description
- isbn - isbn
- issn - issn
QueryFields: DismaxHandler: edismax
0:
0:
- OR
- 50
title_short:
- [onephrase, 750]
title_full_unstemmed:
- [onephrase, 600]
- [and, 500]
title_full:
- [onephrase, 400]
title:
- [onephrase, 300]
- [and, 250]
title_alt:
- [and, 200]
title_new:
- [and, 100]
series:
- [and, 50]
series2:
- [and, 30]
author:
- [onephrase, 300]
- [and, 250]
author_fuller:
- [onephrase, 150]
- [and, 125]
author2:
- [and, 50]
author_additional:
- [and, 50]
contents:
- [and, 10]
topic_unstemmed:
- [onephrase, 550]
- [and, 500]
topic:
- [onephrase, 500]
geographic:
- [onephrase, 300]
genre:
- [onephrase, 300]
allfields_unstemmed:
- [or, 10]
fulltext_unstemmed:
- [or, 10]
allfields:
- [or, ~]
fulltext:
- [or, ~]
description:
- [or, ~]
isbn:
- [onephrase, ~]
issn:
- [onephrase, ~]
# ExactSettings: # ExactSettings:
# DismaxFields: # DismaxFields:
# - title_full_unstemmed^600 # - title_full_unstemmed^600
...@@ -455,21 +273,6 @@ AllFields: ...@@ -455,21 +273,6 @@ AllFields:
# - fulltext_unstemmed^10 # - fulltext_unstemmed^10
# - isbn # - isbn
# - issn # - issn
# QueryFields:
# title_full_unstemmed:
# - [onephrase, 600]
# - [and, 500]
# topic_unstemmed:
# - [onephrase, 550]
# - [and, 500]
# allfields_unstemmed:
# - [or, 10]
# fulltext_unstemmed:
# - [or, 10]
# isbn:
# - [onephrase, ~]
# issn:
# - [onephrase, ~]
# These are advanced searches that never use Dismax: # These are advanced searches that never use Dismax:
id: id:
......
...@@ -14,40 +14,4 @@ AllFields: ...@@ -14,40 +14,4 @@ AllFields:
- url_keywords^50 - url_keywords^50
- fulltext_unstemmed^10 - fulltext_unstemmed^10
- fulltext - fulltext
QueryFields: DismaxHandler: edismax
title_unstemmed:
- [onephrase, 1200]
- [and, 800]
- [or, 15]
title:
- [onephrase, 1000]
- [and, 750]
- [or, 10]
description_unstemmed:
- [onephrase, 400]
- [and, 350]
- [or, ~]
description:
- [onephrase, 350]
- [and, 300]
- [or, ~]
keywords_unstemmed:
- [onephrase, 300]
- [and, 250]
- [or, ~]
keywords:
- [onephrase, 250]
- [and, 200]
- [or, ~]
url_keywords:
- [onephrase, 100]
- [and, 50]
- [or, ~]
fulltext_unstemmed:
- [onephrase, 50]
- [and, 10]
- [or, ~]
fulltext:
- [onephrase, 25]
- [and, 5]
- [or, ~]
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