I'm having some problems implementing my concept of searching on my blog [
www.binaryelysium.com].
This is the way I am attempting to run a query. Searcher submits terms ie: "large red clowns."
What I want to do is give results in the following order (top with highest priority):
- results that include all terms
- results that include all terms minus one
- results that include all terms minus two
- and so on until one term remains this one is displayed at the very end
So... for the above example the user would get:
- posts with the the striing "large red clowns"
- posts with the string "large red"
- posts with the string "large clowns"
- posts with the string "red clowns"
- posts with the string "large"
- posts with the string "red"
- posts with the string "clowns"
But the last three ordered in such a manner of being most recent.
Does anyone have any idea how I could go about doing it?