Last question for the day for you folks :)
We've written the code for our webservice to do a "contains" search with
Lucene.NET (easy thanks to the developers).
Now the next part they added to it (development and planning in one go,
/slaps project lead's hand) is to do a "Is Exactly" and "Is Not Exactly"
searches.
I know we could do this by doing a search and looking for anything with
a score of _near_ 1. (even copied/pasted stuff gave me 0.99999994
scores, my guess is due to punctuation), however, we're using the
Lucene.Net.QueryParsers.QueryParser and Lucene.Net.Search.Query to allow
multiple clauses in the query. So I can't do "Is exactly "Bob is
smiling"" then just loop through the returned values' scores. (instead
we want to do "Field1 Is Exactly "Bob is smiling" AND Field2 Contains
"happy" AND Field3 does not contain "Dancing ensued")
Is it possible to add anything to the query to restrict the scores
returned in Lucene.Net? For example, "Bob is happy"$0.9 would return
anything with a 0.9 score or higher.
Any advice would be greatly appreciated.
Trevor Watson