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 a of brand b make c of model d of year x.

  • find out parts available of brand b make c of model d of year x.

  • search multiple items @ once vehicle c of model d of year 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:

  1. how should model data search scenarios achieved efficiently? mean how relation between entities in java , persistence system should like?
  2. 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.

faceted search in solr

filters vs. facets: definitions


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -