ComplexPhraseQuery problems with simple phrases

2010-02-19 Thread David Kaelbling
uot;", "1,2,3,4"); The first check succeeds. The second throws an IllegalArgumentException trying to rewrite the query, complaining that WildcardQuery is an unknown query type. If this is bad syntax I would have expected the first query to have failed too. Does anyone have a

RE: ComplexPhraseQuery problems with simple phrases

2010-02-20 Thread David Kaelbling
Sounds good! Unfortunately the ComplexPhraseQuery class and members are not visible, so this isn't something that I can easily repair outside the library. -- David Kaelbling Senior Software Engineer Black Duck Software, Inc. dkaelbl...@blackducksoftware.com T +1.781.810.2041 F +1.781.891

CachingTokenFilter extensibility and LUCENE-1685

2009-08-27 Thread David Kaelbling
d the WeightedSpanTermExtractor.getReaderForField() is still hardwired to require a CachingTokenFilter-derived object. Am I missing something? Having two copies of the token stream, one for random access and one hidden inside the CachingTokenFilter, does not sound efficient :-) Thanks, David -- David Kaelbling Senior Sof

RE: CachingTokenFilter extensibility and LUCENE-1685

2009-08-28 Thread David Kaelbling
am (a new TokenStream.isCachingTokens() method, checking for an new "CachedTokenStream" interface rather than for CachingTokenFilter, some attribute, anything! :-) then I could still work with the public API. - David -- David Kaelbling Senior Software Engineer Black Duck Sof

RE: CachingTokenFilter extensibility and LUCENE-1685

2009-08-28 Thread David Kaelbling
Uwe, I kind of like the idea of changing WeightedSpanTermExtractor to test for "!(tokenStream instanceof RandomAccess)" :-) - David -- David Kaelbling Senior Software Engineer Black Duck Software, Inc. dkaelbl...@blackducksoftware.com T +1.781.810.2041 F +1.781.891.

Using attributes after end of stream

2009-09-10 Thread David Kaelbling
, David -- David Kaelbling Senior Software Engineer Black Duck Software, Inc. dkaelbl...@blackducksoftware.com T +1.781.810.2041 F +1.781.891.5145 http://www.blackducksoftware.com - To unsubscribe, e-mail: java-dev-unsubscr

SpanScorer handling of non-disjoint phrases

2008-04-23 Thread David Kaelbling
onSpans()? Thanks, David PS: And while I'm asking, it looks like getWeightedSpanTermsWithScores() will wrap the cachingTokenFilter passed it by SpanScorer.init() into another CachingTokenFilter, duplicating the cache? -- David Kaelbling Senior Software Engineer Black Duck Sof

Re: SpanScorer handling of non-disjoint phrases

2008-04-24 Thread David Kaelbling
ed on Terms, the collision I experienced may not happen. Thanks, David -- David Kaelbling Senior Software Engineer Black Duck Software, Inc. [EMAIL PROTECTED] T +1.781.810.2041 F +1.781.891.5145 http://www.blackducksoftware.com -

Re: [jira] Created: (LUCENE-1486) Wildcards, ORs etc inside Phrase queries

2008-12-11 Thread David Kaelbling
n't appear anywhere in the document; it ignores the phrase/proximity requirement. Thanks, David -- David Kaelbling Senior Software Engineer Black Duck Software, Inc. [EMAIL PROTECTED] T +1.781.810.2041 F +1.781.891.5145 http://www.blackd

Re: [jira] Created: (LUCENE-1486) Wildcards, ORs etc inside Phrase queries

2008-12-11 Thread David Kaelbling
Thanks! But not quite -- that query doesn't hit on a document that contains: copyright 2008 mycompany blah blah blah blah copyright 2008 yourcompany - David On Thu, 2008-12-11 at 11:33 -0500, Yonik Seeley wrote: > On Thu, Dec 11, 2008 at 11:24 AM, David K

[jira] Commented: (LUCENE-1522) another highlighter

2009-03-18 Thread David Kaelbling (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683079#action_12683079 ] David Kaelbling commented on LUCENE-1522: - Hi, Our application wants to find

[jira] Commented: (LUCENE-2039) Regex support and beyond in JavaCC QueryParser

2009-11-19 Thread David Kaelbling (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780193#action_12780193 ] David Kaelbling commented on LUCENE-2039: - I apologize if I haven't

[jira] Issue Comment Edited: (LUCENE-2039) Regex support and beyond in JavaCC QueryParser

2009-11-19 Thread David Kaelbling (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780193#action_12780193 ] David Kaelbling edited comment on LUCENE-2039 at 11/19/09 8:2

[jira] Commented: (LUCENE-1486) Wildcards, ORs etc inside Phrase queries

2009-12-07 Thread David Kaelbling (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787053#action_12787053 ] David Kaelbling commented on LUCENE-1486: - Could someone link the new Lucene

[jira] Commented: (LUCENE-2039) Regex support and beyond in JavaCC QueryParser

2009-12-09 Thread David Kaelbling (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788340#action_12788340 ] David Kaelbling commented on LUCENE-2039: - Currently the master parser doe

[jira] Commented: (LUCENE-2039) Regex support and beyond in JavaCC QueryParser

2009-12-11 Thread David Kaelbling (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789374#action_12789374 ] David Kaelbling commented on LUCENE-2039: - > I would suggest to mod

[jira] Commented: (LUCENE-2039) Regex support and beyond in JavaCC QueryParser

2009-12-14 Thread David Kaelbling (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790223#action_12790223 ] David Kaelbling commented on LUCENE-2039: - > David here is an example of

[jira] Commented: (LUCENE-2039) Regex support and beyond in JavaCC QueryParser

2009-12-14 Thread David Kaelbling (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790270#action_12790270 ] David Kaelbling commented on LUCENE-2039: - Hi Simon -- sorry, an example usi

[jira] Commented: (LUCENE-2039) Regex support and beyond in JavaCC QueryParser

2009-12-14 Thread David Kaelbling (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790373#action_12790373 ] David Kaelbling commented on LUCENE-2039: - {bq} I do not see another way

[jira] Issue Comment Edited: (LUCENE-2039) Regex support and beyond in JavaCC QueryParser

2009-12-14 Thread David Kaelbling (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790373#action_12790373 ] David Kaelbling edited comment on LUCENE-2039 at 12/14/09 9:1