You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2007/01/14 19:29:27 UTC
[jira] Created: (LUCENE-777) SpanWithinQuery - A SpanNotQuery that
allows a specified number of intersections
SpanWithinQuery - A SpanNotQuery that allows a specified number of intersections
--------------------------------------------------------------------------------
Key: LUCENE-777
URL: https://issues.apache.org/jira/browse/LUCENE-777
Project: Lucene - Java
Issue Type: New Feature
Components: Search
Reporter: Mark Miller
Priority: Minor
Attachments: SpanWithinQuery.java
A SpanNotQuery that allows a specified number of intersections.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-777) SpanWithinQuery - A SpanNotQuery
that allows a specified number of intersections
Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660596#action_12660596 ]
Mark Miller commented on LUCENE-777:
------------------------------------
I think this adds some good value to Lucene (particularly, it allows for pretty efficient 'within n' sentence/paragraph search support).
Any objects to adding it? Perhaps to contrib?
> SpanWithinQuery - A SpanNotQuery that allows a specified number of intersections
> --------------------------------------------------------------------------------
>
> Key: LUCENE-777
> URL: https://issues.apache.org/jira/browse/LUCENE-777
> Project: Lucene - Java
> Issue Type: New Feature
> Components: Search
> Reporter: Mark Miller
> Priority: Minor
> Attachments: LUCENE-777.patch, SpanWithinQuery.java
>
>
> A SpanNotQuery that allows a specified number of intersections.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-777) SpanWithinQuery - A SpanNotQuery
that allows a specified number of intersections
Posted by "Paul Elschot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660631#action_12660631 ]
Paul Elschot commented on LUCENE-777:
-------------------------------------
When there is nothing to exclude, includeSpans.next() should be called just as often as the next() method of the resulting Spans, but includeSpans.next() is called twice.
Is that correct?
> SpanWithinQuery - A SpanNotQuery that allows a specified number of intersections
> --------------------------------------------------------------------------------
>
> Key: LUCENE-777
> URL: https://issues.apache.org/jira/browse/LUCENE-777
> Project: Lucene - Java
> Issue Type: New Feature
> Components: Search
> Reporter: Mark Miller
> Priority: Minor
> Attachments: LUCENE-777.patch, SpanWithinQuery.java
>
>
> A SpanNotQuery that allows a specified number of intersections.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-777) SpanWithinQuery - A SpanNotQuery that
allows a specified number of intersections
Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Miller updated LUCENE-777:
-------------------------------
Attachment: SpanWithinQuery.java
> SpanWithinQuery - A SpanNotQuery that allows a specified number of intersections
> --------------------------------------------------------------------------------
>
> Key: LUCENE-777
> URL: https://issues.apache.org/jira/browse/LUCENE-777
> Project: Lucene - Java
> Issue Type: New Feature
> Components: Search
> Reporter: Mark Miller
> Priority: Minor
> Attachments: SpanWithinQuery.java
>
>
> A SpanNotQuery that allows a specified number of intersections.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-777) SpanWithinQuery - A SpanNotQuery
that allows a specified number of intersections
Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660645#action_12660645 ]
Mark Miller commented on LUCENE-777:
------------------------------------
Thanks for looking at this Paul. Interesting question - I'll have to get back into this (been a while) and maybe expand the tests to try where nothing is excluded. I've used it enough to know that it appears to work right, but I could easily have missed issues when there was nothing to exclude.
FYI: this is based on SpanNot - where SpanNot would have rejected, this lets it go until a count of n. I'll work on some tests when I get a chance.
> SpanWithinQuery - A SpanNotQuery that allows a specified number of intersections
> --------------------------------------------------------------------------------
>
> Key: LUCENE-777
> URL: https://issues.apache.org/jira/browse/LUCENE-777
> Project: Lucene - Java
> Issue Type: New Feature
> Components: Search
> Reporter: Mark Miller
> Priority: Minor
> Attachments: LUCENE-777.patch, SpanWithinQuery.java
>
>
> A SpanNotQuery that allows a specified number of intersections.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-777) SpanWithinQuery - A SpanNotQuery that
allows a specified number of intersections
Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Miller updated LUCENE-777:
-------------------------------
Attachment: LUCENE-777.patch
Fixes hashcode, single doc wrapping problem seems to have been in my head, added test method for new query, fixes formatting
> SpanWithinQuery - A SpanNotQuery that allows a specified number of intersections
> --------------------------------------------------------------------------------
>
> Key: LUCENE-777
> URL: https://issues.apache.org/jira/browse/LUCENE-777
> Project: Lucene - Java
> Issue Type: New Feature
> Components: Search
> Reporter: Mark Miller
> Priority: Minor
> Attachments: LUCENE-777.patch, SpanWithinQuery.java
>
>
> A SpanNotQuery that allows a specified number of intersections.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-777) SpanWithinQuery - A SpanNotQuery
that allows a specified number of intersections
Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464607 ]
Mark Miller commented on LUCENE-777:
------------------------------------
This could be useful to someone, so I am putting it up. There are a couple issues that I will try and address soon:
If there is only one doc in the index, the proximity search will wrap from end to beginning. The hashcode method needs to include the proximity field in it's calculation (an easy fix).
> SpanWithinQuery - A SpanNotQuery that allows a specified number of intersections
> --------------------------------------------------------------------------------
>
> Key: LUCENE-777
> URL: https://issues.apache.org/jira/browse/LUCENE-777
> Project: Lucene - Java
> Issue Type: New Feature
> Components: Search
> Reporter: Mark Miller
> Priority: Minor
> Attachments: SpanWithinQuery.java
>
>
> A SpanNotQuery that allows a specified number of intersections.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org