Open grmpfhmbl opened 7 years ago
At some point we need to escape the LuceneQuery String. Or at least check for parsing errors.
Example: fileIdentifier:https://data.mfe.govt.nz/table/2508-water-quality-parameters-in-coastal-and-estuarine-environments-2013/ does not parse. Correctly escaped version: fileIdentifier:"https\://data.mfe.govt.nz/table/2508\-water\-quality\-parameters\-in\-coastal\-and\-estuarine\-environments\-2013/"
Any ideas on how we want to handle that? Do we want the user to be able to use the full lucene syntax in the web interface / the api?
In double quotes most "exotic" query strings will be handled accordingly. For now a matter of users "escaping/formulting" lucene queries properly, e.g.:
fileIdentifier:"https://data.mfe.govt.nz/"
At some point we need to escape the LuceneQuery String. Or at least check for parsing errors.
Example: fileIdentifier:https://data.mfe.govt.nz/table/2508-water-quality-parameters-in-coastal-and-estuarine-environments-2013/ does not parse. Correctly escaped version: fileIdentifier:"https\://data.mfe.govt.nz/table/2508\-water\-quality\-parameters\-in\-coastal\-and\-estuarine\-environments\-2013/"
Any ideas on how we want to handle that? Do we want the user to be able to use the full lucene syntax in the web interface / the api?