Skip to content

Commit

Permalink
Fix asset search not supporting lucene syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-va committed May 22, 2024
1 parent 2ed6ac2 commit a4acdc2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/server-asset-sg/src/app/search/asset-search-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,16 @@ export class AssetSearchService {
},
{
query_string: {
query: `*${query}*`,
query: `*${escapeElasticQuery(query)}*`,
fields: scope,
},
},
{
query_string: {
query: query.text,
fields: scope,
}
}
],
filter: filters,
},
Expand Down

0 comments on commit a4acdc2

Please sign in to comment.