Re: ***UNCHECKED*** Limit Solr search to number of character/words (without changing index)

2018-01-29 Thread alessandro.benedetti
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

Re: ***UNCHECKED*** Limit Solr search to number of character/words (without changing index)

2018-01-29 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
-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

Re: ***UNCHECKED*** Limit Solr search to number of character/words (without changing index)

2018-01-29 Thread Muhammad Zahid Iqbal
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

Re: ***UNCHECKED*** Limit Solr search to number of character/words (without changing index)

2018-01-29 Thread alessandro.benedetti
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

Re: ***UNCHECKED*** Limit Solr search to number of character/words (without changing index)

2018-01-29 Thread Emir Arnautović
ry is shorter >> than >>>> a certain number of terms / characters, I would do it before calling >> solr >>>> probably, otherwise you could write a QueryParserPlugin (see [1]) and >> check >>>> that the query is sound before pro

Re: ***UNCHECKED*** Limit Solr search to number of character/words (without changing index)

2018-01-29 Thread Muhammad Zahid Iqbal
>> See also: http://coding-art.blogspot.co.uk/2016/05/writing-custom- > >> solr-query-parser-for.html > >> > >> Cheers, > >> Diego > >> > >> [1] https://wiki.apache.org/solr/SolrPlugins > >> > >> > >> Fr

Re: ***UNCHECKED*** Limit Solr search to number of character/words (without changing index)

2018-01-27 Thread Erick Erickson
rg/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) >&g

Re: ***UNCHECKED*** Limit Solr search to number of character/words (without changing index)

2018-01-27 Thread Muhammad Zahid Iqbal
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, > >

Re:***UNCHECKED*** Limit Solr search to number of character/words (without changing index)

2018-01-26 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
://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

***UNCHECKED*** Limit Solr search to number of character/words (without changing index)

2018-01-26 Thread Muhammad Zahid Iqbal
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