matomo-org / matomo-java-tracker

Official Java implementation of the Matomo Tracking HTTP API.
https://matomo-org.github.io/matomo-java-tracker/
BSD 3-Clause "New" or "Revised" License
69 stars 52 forks source link

Search Query must be set before Search Category #133

Closed sarahsporck closed 1 year ago

sarahsporck commented 1 year ago

The Request builder first sets the search category and then the search query. This leads to this error. https://github.com/matomo-org/matomo-java-tracker/blob/1fdf79e44c104cfb3325a393abaf59e09dbc17ae/src/main/java/org/matomo/java/tracking/MatomoRequestBuilder.java#L586-L591

tholu commented 1 year ago

@sarahsporck Can you create a Pull Request to fix this?

tholu commented 1 year ago

@sarahsporck Thank you for your contribution, the newly released version 2.1 includes this fix and should arrive at Maven Central soon.