Converting builder types


(Ivan Brusic) #1

For the sake of simplicity, I am trying to convert a single
SpanTermQueryBuilder to a TermQueryBuilder. What is the simplest way
to achieve this goal, without going to JSON and back?

Cheers,

Ivan


(Shay Banon) #2

Nothing jumps to mind, there isn't a getter for the relevant values...

On Wed, Jun 13, 2012 at 11:30 PM, Ivan Brusic ivan@brusic.com wrote:

For the sake of simplicity, I am trying to convert a single
SpanTermQueryBuilder to a TermQueryBuilder. What is the simplest way
to achieve this goal, without going to JSON and back?

Cheers,

Ivan


(Ivan Brusic) #3

I figured as much! No harm using a SpanTermQuery, just wanted to get
my queries as simple as possible.

--
Ivan

On Thu, Jun 14, 2012 at 2:42 PM, Shay Banon kimchy@gmail.com wrote:

Nothing jumps to mind, there isn't a getter for the relevant values...

On Wed, Jun 13, 2012 at 11:30 PM, Ivan Brusic ivan@brusic.com wrote:

For the sake of simplicity, I am trying to convert a single
SpanTermQueryBuilder to a TermQueryBuilder. What is the simplest way
to achieve this goal, without going to JSON and back?

Cheers,

Ivan


(system) #4