Re: Running query against a single document

2018-09-27 Thread Aurélien MAZOYER
Hi Tom and Erick, Thank you a lot for your answers. @Tom : Yes, we have considered MemoryIndex. But as far as I understood, we will have to create a MemoryIndex that contains 1 single document every time we will want to test our query against a document. I think we'll have to perform some tests to

Re: Running query against a single document

2018-09-21 Thread Erick Erickson
bq. We would like to know if there is a way to test a query against a document without creating an index. We were thinking that maybe we could use lucene highlighter component to achieve this, I don't really understand this at all. How are you using the highlighter component without creating an in

Re: Running query against a single document

2018-09-21 Thread Tom Mortimer
Hi, Have you considered using MemoryIndex ? cheers, Tom tel +44 8700 118334 : mobile +44 7876 741014 : skype tommortimer On Fri, 21 Sep 2018 at 13:58, Aurélien MAZOYER wrote: > Hi, > > We would lik

Running query against a single document

2018-09-21 Thread Aurélien MAZOYER
Hi, We would like to know if there is a way to test a query against a document without creating an index. We were thinking that maybe we could use lucene highlighter component to achieve this, but it seems it doesn't work as expected with complex queries. For example, we create a SpanQuery (+spanF