Use elastic search to search products in a software product line


(Carlos Camacho) #1

Hello!

Im working with Software Product Lines modeling, and im researching on use well known software solutions to make simpler the computing of feature models.

Im my case want to see if its possible to model FODA feature diagrams using ElasticSearch https://en.wikipedia.org/wiki/Feature_model#/media/File:E-shopFM.jpg

The thing is that this is a NP-hard problem and to compute very large features sets can take a lot of time.

And my goal is to answer questions like:

  • Most probable feature
  • How many valid products are

I will put an example:

I have this features to make a mobile phone:

mobilephone:Phone,
screen:Component,
camera:Component,
lowrescam:Component,
hirescam:Component,
flash:Component

With these relationships:
(mobilephone)-[:MANDATORY]->(screen),
(mobilephone)-[:OPTIONAL]->(camera),
(camera)-[:CHOOSE1]->(lowrescam),
(camera)-[:CHOOSE1]->(hirescam),
(camera)-[:REQUIRES]->(flash)

Computing the model we will get the following products:

mobilephone, screen, camera, lowrescam, flash
mobilephone, screen, camera, hirescam, flash
mobilephone, screen

The probability of having a camera in a phone is: 2/3
The probability of having a screen in a phone is: 3/3

So the questions are:

  • Is it possible to model this kind of behaviour in ElasticSearch?
  • is it possible to create a module to do this? (I will do it)

Im new to ElasticSearch so this is a research question to see if I should dig more on ES.

Thanks.

Carlos.


(Carlos Camacho) #2

Any idea or recommendation?


(system) #3