Results 1 to 1 of 1
- 01-11-2010, 07:36 PM #1
Member
- Join Date
- Jan 2010
- Posts
- 1
- Rep Power
- 0
Lucene as Conditional Evaluator / Indexer?
I have a simple requirement, I'm being passed conditions and their values and need to determine exact fit (if possible) and best match (when no exact fit is found).
For Example:
Rule_1
Condition_1: age < 25
Condition_2: weight > 140
Condition_3: height > 69
Rule_2
Condition_1: age > 25
Condition_2: weight > 140
Condition_3: height > 69
In the example above, if I were to pass:
age = 26
weight = 130
height = 75
Neither rule would be an exact match, but Rule_2 matches two of the conditions where as Rule_1 only matches one. Therefore Rule_2 is the best match.
For my requirement, I may have up to 30,000 rules to match and will have to do so quite frequently (several times per second). I also have the added requirement that different weights will be applied to each condition making some conditions more important than others.
I do not need to perform any action based on the condition. The only action is to return a sorted collection of rules that match along with the score/percentage of the match.
I have not found a Rules Engine that can do this so far (if there is, please let me know), which has lead me to utilizing a search engine like Lucene to handle the task.
I know Lucene can handle the load and has good indexing capabilities, but my question is, can Lucene be used for this type of task and would it be efficient to do so?
Similar Threads
-
Conditional methods. Execute command when JFrame is closed.
By hypertonic in forum AWT / SwingReplies: 1Last Post: 10-29-2009, 11:48 AM -
Lucene Indexer Encoding problem
By svirid in forum LuceneReplies: 5Last Post: 02-18-2009, 09:26 AM -
JSP Help - Conditional Meta Tags
By jakavan in forum New To JavaReplies: 0Last Post: 12-08-2008, 06:34 PM -
how to do conditional looping?
By chennee72 in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 09-09-2008, 12:38 PM -
JFrame Conditional Close
By hemanthjava in forum AWT / SwingReplies: 10Last Post: 06-29-2008, 07:49 AM


LinkBack URL
About LinkBacks

Bookmarks