Skip to content

Commit

Permalink
Fix merge issue on getByIndexedQueryShould
Browse files Browse the repository at this point in the history
add make debug with log and standalone formula
  • Loading branch information
remo87 committed Nov 19, 2024
1 parent ab847ca commit 06aff4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ run_log: ## Runs API using the logback file specified in logfile eg: make run_lo
debug_log: ## Debugs API using the logback file specified in logfile eg: make debug_log logfile=./conf/logback.xml
@sbt -jvm-debug 9999 run -Dlogback.configurationFile=${logfile}

debug_log_standalone: ## Debugs API using the logback file specified in logfile eg: make debug_log_standalone logfile=./conf/logback.xml
@sbt -jvm-debug 9999 "run 8090" -Dlogback.configurationFile=${logfile}

es_tunnel: ## Create tunnel connection to ElasticSearch eg make es_tunnel zone europe-west1-d instance trnplt-es-0-esearch-fl6c
@echo "Connecting to ElasticSearch"
@gcloud compute ssh --zone "${zone}" ${instance} --tunnel-through-iap -- -L 9200:localhost:9200
Expand Down
3 changes: 2 additions & 1 deletion app/models/ElasticRetriever.scala
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ class ElasticRetriever @Inject() (
aggs = aggs,
excludedFields = excludedFields
)
val searchRequest: SearchRequest = IndexQueryMust(indexQuery)
val searchRequest: SearchRequest = IndexQueryShould(indexQuery)
// log and execute the query
getByIndexedQuery(searchRequest, sortByField, buildF)
}

Expand Down

0 comments on commit 06aff4a

Please sign in to comment.