associations - right database/approach to do keyphrase queries with many possible "keys words" matching each record -


my rails 3 application hosted @ heroku using postgres ordinary database stuff keeping track of messages , users. 100% of experience normal relational dbases , sql.

however i'm adding single new method "lookup_product_by_keyword" accesses dataset unrelated rest of app , therefore implemented in framework or database. , i'm wondering if mongodb or other type of database might way implement 1 capability.

our goal find 1 of 5000 product type ("screwdriver" "bottle opener" etc etc) best matches list of perhaps 50,0000 keywords , phrases. example, there might 10-20 words or phrases match , return "screwdriver" ("philips screwdriver" "flathead screwdriver" etc).

i suspect there type of clever design, perhaps built around specialized database different form mysql, postgres, etc. optimized thsi sort of "assocative" rather relational information structure.

any pointers appreciated...

what looking @ database handle text indexing efficiently? not sure how no-sql database problem. oracle introduced oracle text oracle 9. (i think) , have used problem similar yours , performs admirably.

if looking @ database vendor agnostic solution suggest check our hibernate search. uses powerful lucene indexing underneath , provides workable abstraction layer.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -