database - java complex search -
i trying build java based web application using spring boot , rest architecture using spring mvc following purpose:
search car parts through multiple set of criteria.
i try explain in different scenarios:
find
part aofbrand bmake cofmodel dofyear x.find out
partsavailable ofbrand bmake cofmodel dofyear x.search
multiple items @ oncevehicle cofmodel dofyear x. example if engine damaged , want find out whether have parts (like pistons, cylinders, gaskets, etc.) in supply. result of search list of parts brands , prices.
my primary concern @ moment following 2 questions:
- how should model data search scenarios achieved efficiently? mean how relation between entities in java , persistence system should like?
- what kind of database should use? sql or nosql?
all rest end-points return json objects. using angular bootstrap front-end
isn't scenario typical "faceted search"? think solution designed implement faceted search should work fine. example solr or elasticsearch.
the advantage of "faceted search" end users option refine search. users can start broad search , system provide refining filter criteria, based on current search results.
today, major e-commerce sites have kind of faceted search , every search engine support type of browsing.
it seems me engines solr , elasticsearch more natural solution, standard rdbms oracle has support faceted search.
Comments
Post a Comment