RE: Search in lines, so need to index lines?

2018-08-01 Thread Gordin, Ira
Hi all, Would you mind to explain me or/and send some links on explanations for what Lucene is good and supposed to be used and for what it is not good and not supposed to be used? Thanks a lot in advance, Ira -Original Message- From: Tomoko Uchida Sent: Wednesday, August 1, 2018 2:3

Re: any example on FunctionScoreQuery since Field.setBoost is deprecated with Lucene 6.6.0

2018-08-01 Thread baris . kazar
Someone else also asked: http://lucene.472066.n3.nabble.com/index-time-field-level-boosting-in-6-6-0-td4351797.html Best regards On 8/1/18 5:12 PM, baris.ka...@oracle.com wrote: These methods look promising in terms of ease of use of FunctionscoreQuery but they dont exist in Lucene 6.6.0. sta

Re: any example on FunctionScoreQuery since Field.setBoost is deprecated with Lucene 6.6.0

2018-08-01 Thread baris . kazar
These methods look promising in terms of ease of use of FunctionscoreQuery but they dont exist in Lucene 6.6.0. static FunctionScoreQueryboostByQuery(Query in, Query boostMatch, float boostValue) Returns a FunctionScoreQuery where the scores of a wrapped query are multiplied by a boost fac

Re: any example on FunctionScoreQuery since Field.setBoost is deprecated with Lucene 6.6.0

2018-08-01 Thread baris . kazar
i have one MultiFieldQueryParser based Query and one BooleanQuery with dynamic number of TermQuery's. i dont have SortField objects. Are there examples with the above query types please? Best regards On 7/31/18 7:59 PM, baris.ka...@oracle.com wrote: Robert, thanks, this is helpful but why

Re: offsets

2018-08-01 Thread Michael Sokolov
Given that character transformations do happen in TokenFilters, shouldn't we strive to have an API that supports correct offsets (ie highlighting) for any combination of token filters? Currently we can't do that. For example because of the current situation, WordDelimiterGraphFilter, decompounding

Re: Search in lines, so need to index lines?

2018-08-01 Thread Michael Sokolov
It sounds as if you must integrate a regex search into an existing framework. You have good ammunition here for explaining why this may not be a good idea since the performance will not be good. However if you must do it, you may want to consider whether you can augment your queries with additional

Re: Search in lines, so need to index lines?

2018-08-01 Thread Tomoko Uchida
Ira, I do not understand your requirements, but essentially lucene is not for regex searching. There are tools for fast regular expression search, if you do not satisfy with java standard library, for example: https://github.com/google/re2j And yes, grep command would be the best tool for you. T

Re: Search in lines, so need to index lines?

2018-08-01 Thread Robert Muir
http://man7.org/linux/man-pages/man1/grep.1.html On Wed, Aug 1, 2018 at 7:01 AM, Gordin, Ira wrote: > Hi Tomoko, > > I need to search in many files and we use Lucene for this purpose. > > Thanks, > Ira > > -Original Message- > From: Tomoko Uchida > Sent: Wednesday, August 1, 2018 1:49 PM

RE: Search in lines, so need to index lines?

2018-08-01 Thread Gordin, Ira
Hi Tomoko, I need to search in many files and we use Lucene for this purpose. Thanks, Ira -Original Message- From: Tomoko Uchida Sent: Wednesday, August 1, 2018 1:49 PM To: java-user@lucene.apache.org Subject: Re: Search in lines, so need to index lines? Hi Ira, > I am trying to impl

Re: Search in lines, so need to index lines?

2018-08-01 Thread Tomoko Uchida
Hi Ira, > I am trying to implement regex search in file Why are you using Lucene for regular expression search? You can implement this by simply using java.util.regex package? Regards, Tomoko 2018年8月1日(水) 0:18 Gordin, Ira : > Hi Uwe, > > I am trying to implement regex search in file the same a