M
M
magary42016-12-07 11:30:21
symfony
magary4, 2016-12-07 11:30:21

How to make "in a smart way" the processing of the request by the search service?

there is a repository object with methods
- searchProducts
- searchStores
- getNearestShops
and so on
if there is a key-value - everything is simple,
?name=abc&city=London
but additional logic is needed that will determine how exactly to process the value of the input parameter

[{"key":"name","value":"London","type":"searchByLike"}, {"key":"price","value":"100","type":"greaterThan" } ]

it is necessary to design it somehow correctly in terms of OOP in order to reuse
Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
usr58, 2016-12-19
@magary4

read about faceted search
and if you want without an additional search engine, then look here:
https://docs.akeneo.com/latest/cookbook/catalog/pr...
https://github.com/akeneo/pim-community- dev/tree/m...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question