-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added test data for search on :, -, bug #3632
- Loading branch information
Showing
6 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"alias":"colon", | ||
"name":"Colon", | ||
"affiliation":"Affiliation value", | ||
"contactEmail":"pete@mailinator.com", | ||
"permissionRoot":false, | ||
"description":"A dataverse with a : (a colon) in the description" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"alias":"dash", | ||
"name":"Titanic - 1999", | ||
"affiliation":"Affiliation value", | ||
"contactEmail":"pete@mailinator.com", | ||
"permissionRoot":false, | ||
"description":"A dataverse with a - (a dash) in the description" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
{ | ||
"message":"Exception running search for [:] with filterQueries [] and paginationStart [0]: javax.ejb.EJBException org.apache.solr.client.solrj.impl.HttpSolrServer.RemoteSolrException org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: org.apache.solr.search.SyntaxError: Cannot parse ':': Encountered \" \":\" \": \"\" at line 1, column 0.\nWas expecting one of:\n <NOT> ...\n \"+\" ...\n \"-\" ...\n <BAREOPER> ...\n \"(\" ...\n \"*\" ...\n <QUOTED> ...\n <TERM> ...\n <PREFIXTERM> ...\n <WILDTERM> ...\n <REGEXPTERM> ...\n \"[\" ...\n \"{\" ...\n <LPARAMS> ...\n <NUMBER> ...\n <TERM> ...\n \"*\" ...\n ", | ||
"documentation_url":"http://thedata.org" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
{ | ||
"q":"*", | ||
"fq_provided":"[]", | ||
"fq_actual":"[({!join from=groups_s to=perms_ss}id:group_public)]", | ||
"total_count":1, | ||
"start":0, | ||
"count_in_response":1, | ||
"items":"[dataverse_10:Dash:10]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
# curl -H "Content-type:application/json" -X POST -d @scripts/search/tests/data/dv-colon.json "http://localhost:8080/api/dvs/peteTop?key=pete" | ||
# curl 'http://localhost:8983/solr/collection1/select?rows=100&wt=json&indent=true&q="description:\:"' | ||
diff <(curl -s 'http://localhost:8080/api/search?q=:') scripts/search/tests/expected/colon | ||
|
||
# http://stackoverflow.com/questions/18277609/search-in-solr-with-special-characters | ||
# curl -H "Content-type:application/json" -X POST -d @scripts/search/tests/data/dv-dash.json "http://localhost:8080/api/dvs/peteTop?key=pete" | ||
# curl 'http://localhost:8983/solr/collection1/select?rows=100&wt=json&indent=true&q=name:\-' | ||
# diff <(curl -s 'http://localhost:8080/api/search?q=name:"Titanic - 1999"') scripts/search/tests/expected/dash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters