Re: SpanQuery - How to wrap a NOT subquery

2016-06-22 Thread Brandon Miller
Thank you!! Okay, I think I have that all squared away. *SpanLastQuery*: I need something like SpanFirstQuery, except that it would be SpanLastQuery. Is there a way to get that to work? *Proximity weighting getting ignored*: I also need to get span term boosting working. Here's my query: "one

RE: SpanQuery - How to wrap a NOT subquery

2016-06-21 Thread Allison, Timothy B.
>Awesome, 0 pre and 1 post works! Great! > What if I wanted to match thirty, but exclude if six or seven are included > anywhere in the document? Any time you need "anywhere in the document", use a "regular" query (not SpanQuery). As you wrote initially, you can construct a BooleanQuery that

Re: SpanQuery - How to wrap a NOT subquery

2016-06-21 Thread Brandon Miller
Awesome, 0 pre and 1 post works! I replaced pre with Integer.MAX_VALUE and post with Integer.MAX_VALUE - 5 and it works! If I replace post with Integer.MAX_VALUE - 4 (or -3, -2, -1, -0), it fails. But, if it's -(5+), it appears to work. Thank you guys for suffering through my inexperience with

RE: SpanQuery - How to wrap a NOT subquery

2016-06-21 Thread Allison, Timothy B.
>Perhaps I'm misunderstanding the pre/post parameters? Pre/post parameters: " 'six' or 'seven' should not appear $pre tokens before 'thirty' or $post tokens after 'thirty' Maybe something like this: spanNear([ spanNear([field:one, field:thousand, field:one, field:hundred], 0, true),

Re: SpanQuery - How to wrap a NOT subquery

2016-06-21 Thread Brandon Miller
I saw the second post--the first post was new to me. We plan on connecting with those people later on, but right now, I'm trying to write a stop-gap dtSearch compiler until we can at least secure the funding we need to employ their help. Right now, I have a very functional query parser, with

RE: SpanQuery - How to wrap a NOT subquery

2016-06-21 Thread Allison, Timothy B.
> dtSearch allows a user to have NOTs embedded in proximity searches. And, if you're heading down the path of building your own queryparser to handle dtSearch's syntax, please read and heed Charlie Hull's post: http://www.flax.co.uk/blog/2016/05/13/old-new-query-parser/ See also:

RE: SpanQuery - How to wrap a NOT subquery

2016-06-21 Thread Allison, Timothy B.
From: Brandon Miller [mailto:computerengineer.bran...@gmail.com] Sent: Monday, June 20, 2016 4:12 PM To: Allison, Timothy B. <talli...@mitre.org>; solr-user@lucene.apache.org Subject: Re: SpanQuery - How to wrap a NOT subquery Thank you, Timothy. I have support for and am using SpanNo

Re: SpanQuery - How to wrap a NOT subquery

2016-06-20 Thread Brandon Miller
Thank you, Timothy. I have support for and am using SpanNotQuery elsewhere. Maybe there is another use for it that I'm not considering. I'm wondering if there's a clever way of reusing it in order to satisfy the requirements of proximity NOTs, too. dtSearch allows a user to have NOTs embedded