[Search] Elasticsearch search options

Changed the search term processor to allow
the name and type options again (for
elasticsearch).
This commit is contained in:
shale 2015-07-15 10:52:27 -07:00
parent eb5946c1c1
commit d6720884f1

View File

@ -167,7 +167,9 @@ define(
}
// If the search starts with 'type:', then search for domain object type, rather
// than the domain object name.
else if (searchTerm.includes('type:')) {
else
*/
if (searchTerm.includes('type:')) {
// Do nothing for now
} else if (searchTerm.includes('name:')) {
// Do nothing for now
@ -178,12 +180,11 @@ define(
// e.g. The input 'sine' become '*sine*', but the input
// 'sine OR telemetry' becomes '*sine OR telemetry*' instead of
// '*sine* OR *telemetry*'
searchTerm = '*' + searchTerm + '*';
//searchTerm = '*' + searchTerm + '*';
// Assume that the search term is for the name by default
searchTerm = "name:" + searchTerm;
}
*/
//console.log('processed serach term ', searchTerm);
return searchTerm;