Taking a look to Lucene code, this seems the closest query to your
requirement :
org.apache.lucene.search.spans.SpanPositionRangeQuery
But it is not used in Solr out of the box according to what I know.
You may potentially develop a query parser and use it to reach your goals.
Given that, I thin
-user@lucene.apache.org
Subject: Re: ***UNCHECKED*** Limit Solr search to number of character/words
(without changing index)
Hi Alessandro,
Thanks for making it more clear. As I mentioned I do not want to change my
index (mentioned in subject) for the feature I requested.
search query will have
Hi Alessandro,
Thanks for making it more clear. As I mentioned I do not want to change my
index (mentioned in subject) for the feature I requested.
search query will have to look for first 100 characters indexed in same XYZ
field. "
How can I achieve this without changing index? I want at search
This seems different from what you initially asked ( and Diego responded)
"One is simple, search query will look for whole content indexed in XYZ
field
Other one is, search query will have to look for first 100 characters
indexed in same XYZ field. "
This is still doable at Indexing time using a
efore calling
>> solr
>>>> probably, otherwise you could write a QueryParserPlugin (see [1]) and
>> check
>>>> that the query is sound before processing it.
>>>> See also: http://coding-art.blogspot.co.uk/2016/05/writing-custom-
>>>> solr-
05/writing-custom-
> >> solr-query-parser-for.html
> >>
> >> Cheers,
> >> Diego
> >>
> >> [1] https://wiki.apache.org/solr/SolrPlugins
> >>
> >>
> >> From: solr-user@lucene.apache.org At: 01/26/18 13:24:36To:
&g
gt;>
>> From: solr-user@lucene.apache.org At: 01/26/18 13:24:36To:
>> solr-user@lucene.apache.org
>> Cc: apa...@elyograg.org
>> Subject: ***UNCHECKED*** Limit Solr search to number of character/words
>> (without changing index)
>>
>> Hi All,
>>
>
e.org/solr/SolrPlugins
>
>
> From: solr-user@lucene.apache.org At: 01/26/18 13:24:36To:
> solr-user@lucene.apache.org
> Cc: apa...@elyograg.org
> Subject: ***UNCHECKED*** Limit Solr search to number of character/words
> (without changing index)
>
> Hi All,
>
>
://coding-art.blogspot.co.uk/2016/05/writing-custom-solr-query-parser-for.html
Cheers,
Diego
[1] https://wiki.apache.org/solr/SolrPlugins
From: solr-user@lucene.apache.org At: 01/26/18 13:24:36To:
solr-user@lucene.apache.org
Cc: apa...@elyograg.org
Subject: ***UNCHECKED*** Limit Solr search to number
Hi All,
Is there any way I can restrict Solr search query to look for specified
number of characters/words (for only searching purposes not for
highlighting)
*For example:*
*Indexed content:*
*I am a man of my words I am a lazy man...*
Search to consider only below mentioned (words=7 or
10 matches
Mail list logo