I want to build an algorithm as follows -
Lets say, user first search for keyword "tablet" and then again search for "Apple", so i should be able to populate 2nd search result which gives information on Apple tablet. Another example, first I search for "Android" and then search for "mobile phone", so I should populate 2nd search result on Android phone.
What is the best way of implementing such algorithm? Using Python, Java or other language?
Is Apache stanbol/Solr good enough for such algorithm?