2003-02-14: I'm trying to come up with a ranking system for search results. One idea is that for an OR search, the ratio of found to not-found terms is used.
- | + | Behavior | |
---|---|---|---|
0 | 0 | 0 | Error: no search term |
0 | 0 | 1 | OR search: (example: foo bar baz) multi match incr. relevance |
0 | 1 | 0 | AND search: (example: +foo +bar +baz) 1)Filter in |
0 | 1 | 1 | AND/OR search: (example: +foo bar baz) 1)Filter in; ORs increase relevance? |
1 | 0 | 0 | NOT search: (example: -foo -bar -baz) 1)Filter out |
1 | 0 | 1 | NOT/OR search: (example: -foo bar baz) 1)Filter out; 2)OR search; multi match incr. relevance |
1 | 1 | 0 | NOT/AND search: (example: -foo +bar +baz) 1)Filter out; 2)Filter in |
1 | 1 | 1 | NOT/AND/OR search: (example: -foo +bar baz) 1)Filter out; 2)Filter in; 3)ORs incr. relevance? |
NOT | MUST | MAY |
| ||||||||
|