lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naveen33 <>
Subject Re: Sentence level searching
Date Thu, 03 Aug 2017 08:38:44 GMT
Hi Michael,
 what are you were looking for ,it can be achieved in Solr but not directly.
We will have to write a custom query parser which will use Lucene Query
parser. In the parser you will have to use the span queries.
SpanQuery1- your term1, term2, .....termN and the range like standard its 50
and the boolean ordered true or false.
SpanQuery2- your sentence starting and sentence ending indications. like you
keep #sb#,#se#
 and your 2nd spanQuery will be #se# #sb# length -1 and order-TRue
final SPanQuery will be- spanQUery1-spanQuery2

In this way you would be able to achieve what you want.It works and i have
tried it.

Thanks & Regard

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message