Ticket #906 (closed defect: fixed)

Opened 9 months ago

Last modified 6 months ago

advanced search doesn't handle multi-word subject areas, date ranges correctly

Reported by: russ Assigned to: jkirton
Priority: medium Milestone:
Component: ambra Version: 0.8.2.2-SNAPSHOT
Keywords: search Cc:
Blocking: Blocked By:

Description

category names have their spaces stripped in searchSimple.ftl, which breaks search.

<#assign categoryId = category?replace("\\s|\'","","r")>

if you search for 'Cell Biology' through advanced search, you get the following search term

subject:( "CellBiology" )

adding a space or + to the search term works just fine:

subject:( "Cell Biology" )

however, if you then return to the advanced search page to modify your query, the parser makes a mistake and adds the string "subject:( " to the "for all the words" field.

Dependency Graph

Change History

04/09/08 17:03:20 changed by russ

  • summary changed from advanced search doesn't handle multi-word subject areas correctly to advanced search doesn't handle multi-word subject areas, date ranges correctly.

searching for the past week does not work

http://plospathogens-branch.plos.org:8080/article/browse.action?field=date shows one article published on 4/4

searching for the past week results in the following search string:

date:[20080402 TO 20080409]

but no results are returned.

lucene wants a date string with dashes. this works:

date:[2008-04-02 TO 2008-04-09]

04/10/08 10:19:42 changed by jkirton

(In [5406]) addresses #906 Fixed category multi-word issue where they were being conjoined into a single word upon search execution. Also, eliminated un-referenced browseUrl ftl declarations.

04/10/08 12:58:21 changed by jkirton

(In [5410]) addresses #906

  • Fixed lucene date formatting (was: 20080101 is: 2008-01-01).
  • We are now left padding the month and day date parts thus ensuring 2 digits.
  • Changed a string literal ref from "month" to "3months" so now we are properly handling the 3 Months date search option.

04/11/08 02:02:22 changed by russ

  • status changed from new to closed.
  • resolution set to fixed.

tested and awesome

07/16/08 11:01:33 changed by

  • milestone deleted.

Milestone pubApp_0.8.2.2 deleted