Opened 2 years ago

Closed 2 years ago

Last modified 21 months ago

#892 closed defect (fixed)

WebSearch: configurable SPIRES syntax support

Reported by: simko Owned by: lmarian
Priority: critical Milestone:
Component: WebSearch Version:
Keywords: Cc:

Description

In the distant past, the SPIRES query syntax trigger in user queries was simply the presence of leading find. With ticket:508 and with the in-the-meantime-committed SPIRES syntax guesswork, the trigger can be leading-a, leading-t, space-ps-space, etc. This is clearly not desirable for some sites.

We need a new configuration variable called say CFG_WEBSEARCH_SPIRES_SYNTAX that people could use to configure their sites. For example:0 = SPIRES syntax is switched off; 1 = leading find is required; 2 = leading SPIRES operator is required; 3 = space-operator-space is recognised too; 9 = it is always used.

(taken from ticket:431#comment:19 so that it better stands out)

Change History (6)

comment:1 Changed 2 years ago by lmarian

  • Owner set to lmarian
  • Status changed from new to assigned

comment:2 Changed 2 years ago by lmarian

  • Status changed from assigned to in_merge

Fixed in branch lmarian-public/FIX_spires_syntax_task_892

comment:3 Changed 2 years ago by Ludmila Marian <ludmila.marian@…>

  • Resolution set to fixed
  • Status changed from in_merge to closed

In [67dfd7951ef156128a2f6ece9a6d857bc81e9e90]:

WebSearch: configurable SPIRES query syntax

  • Adds variable CFG_WEBSEARCH_SPIRES_SYNTAX to configure the use of SPIRES search syntax. Amends SQPP to use the new variable in deciding if the SPIRES query parser is applicable. (closes #892)
  • Amends unit and regression tests for SPIRES syntax, to be executed only if CFG_WEBSEARCH_SPIRES_SYNTAX is set accordingly.

comment:4 Changed 2 years ago by simko

  • Milestone v1.0 deleted

Milestone v1.0 deleted

comment:5 Changed 21 months ago by Ludmila Marian <ludmila.marian@…>

In 67dfd7951ef156128a2f6ece9a6d857bc81e9e90:

WebSearch: configurable SPIRES query syntax

  • Adds variable CFG_WEBSEARCH_SPIRES_SYNTAX to configure the use of SPIRES search syntax. Amends SQPP to use the new variable in deciding if the SPIRES query parser is applicable. (closes #892)
  • Amends unit and regression tests for SPIRES syntax, to be executed only if CFG_WEBSEARCH_SPIRES_SYNTAX is set accordingly.

comment:6 Changed 21 months ago by Ludmila Marian <ludmila.marian@…>

In 67dfd7951ef156128a2f6ece9a6d857bc81e9e90:

WebSearch: configurable SPIRES query syntax

  • Adds variable CFG_WEBSEARCH_SPIRES_SYNTAX to configure the use of SPIRES search syntax. Amends SQPP to use the new variable in deciding if the SPIRES query parser is applicable. (closes #892)
  • Amends unit and regression tests for SPIRES syntax, to be executed only if CFG_WEBSEARCH_SPIRES_SYNTAX is set accordingly.
Note: See TracTickets for help on using tickets.