I have done some testing on it on large data sets and they seem to work fine (for my query types, which are very similar to yours).
Precision (#correct results retrieved by query/ #all results retrieved by query) was good (i.e. 1), I cannot confirm Recall yet (#results retrieved / #all possible good results) since I currently have no way of verifying the search results other than running Lucene queries. Thanks Doug -----Original Message----- From: Doug Cutting [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 9:43 AM To: Lucene Developers List Subject: Re: New Query Type(s) Paolo Spadafora wrote: > did you implement such a feature yet? Yes. The org.apache.lucene.search.spans.* classes now in CVS support these sorts of operations. There is no query parser support for them yet. If you have questions or problems about how they work, please send them along. > I know i am bothering you with these phrasequery issues...sorry... > and, thank you. We all appreciate you. Thanks! > PS: search engine that support that use a sintax like: > "a b c" w/10 "a f g" > for this type of query, users do not like to use "(" much. I'd love to see more query parsers contributed! Doug > Jochen wrote: > >>Please disregard my prior post. I see that I outed myself as stupid. > > > This was not a stupid request, but a reasonable one. In fact I > currently have a contract to implement such a feature. It should show > up in the next month or so. > > Doug > > >>>-----Original Message----- >>>From: Jochen [mailto:[EMAIL PROTECTED] >>>Sent: Wednesday, January 07, 2004 8:48 AM >>>To: 'Lucene Developers List' >>>Subject: New Query Type(s) >>> >>>Lucene Gurus: >>> >>> After looking at and trying out lucene for quite some time (and >>>liking it), I would like to create some advanced queries to speed up our >>>system. The first one I need to be as follows: >>> >>> (+"a b c" +"d e")~10 >>> >>> In other words, I need to run a query in where two phrases (for >>>right now an exact match will be fine) are in some defined proximity (in >>>this example, I need "a b c" somewhere close to "d e"). >>> >>> The indexes created nicely support this kind of functionality, and >>>the pieces of are all implemented (PhraseQuery, BooleanQuery, PhraseQuery >>>with Slop). However, I believe that they cannot be stringed together with >>>the current lucene version, to give me what I need. >>> >>> I have studied the code and I will write the code to create this >>>type of query (and make it available, if I get it working), but I would >>>very >>>much appreciate a high level roadmap from more experienced people (i.e. >>>create a new Query Object, change this and that object to do such and such >>>...). >>> >>> Cheers! >>> Jochen > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]