IQSS / dataverse

Open source research data repository software
http://dataverse.org
Other
860 stars 481 forks source link

Adv Search: Selecting subject field with & results in no results #1428

Closed kcondon closed 9 years ago

kcondon commented 9 years ago

In adv search, choosing Medicine, Health & Life Sciences for subject under Citation results in an error: Search Syntax Error: Cannot parse 'subject:"Medicine, Health': Lexical error at line 1, column 26. Encountered: after : "\"Medicine, Health"

scolapasta commented 9 years ago

Added urlencoding the query part of the URL

kcondon commented 9 years ago

Error fixed but now cannot find datasets with this subject. Passing back to fix adv search/index.

scolapasta commented 9 years ago

I tried on dvn-build. There is one study with this subject and when I did an advanced search, it was returned.

kcondon commented 9 years ago

OK, I see the issue. Both dv and ds have the same subject controlled vocab and I was accidentally searching on the dv controlled vocab.


From: Gustavo Durand [notifications@github.com] Sent: Friday, February 27, 2015 10:34 PM To: IQSS/dataverse Cc: Condon, Kevin Subject: Re: [dataverse] Adv Search: Selecting subject field with & results in no results (#1428)

I tried on dvn-build. There is one study with this subject and when I did an advanced search, it was returned.

— Reply to this email directly or view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_IQSS_dataverse_issues_1428-23issuecomment-2D76508217&d=BQMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=TUpjWt9sVfaAC8ETCY_cDPtqJKl7s242PLg6-Wx6UpM&m=qakA6FS5KSHK4H5i_UDAnfBzZpT6FoWZxt-S1Uq7AUE&s=IQ3e9REcH9gI7nDjofAN9xrVh0nnTygyDkDVto8_1x4&e=.

scolapasta commented 9 years ago

So is still an issue?

pdurbin commented 9 years ago

I changed the Solr field type in #1681 so I'd recommend testing that ticket and this one at the same time.

posixeleni commented 9 years ago

Once #1709 fix is reflected in dvn-build the & (ampersand) will no longer be in the subject

posixeleni commented 9 years ago

Based on @pdurbin fix in #1681 the search is now working:

Works when you search for Dataverses or Datasets in Advance Search that have Medicine, Health & Life Sciences: image

posixeleni commented 9 years ago

Closing.