Re: How can I get the term positions from a query?

2016-09-29 Thread Dawid Weiss
There are multiple Highlighter implementations for this purpose. Check them out -- I'm sure one of them will suit your needs. In fact, there's a new highlighter implemented very recently! Check out this JIRA issue: https://issues.apache.org/jira/browse/LUCENE-7438 Dawid On Fri, Sep 30, 2016 at 8

Re: How can I get the term positions from a query?

2016-09-29 Thread szzoli
I would like to show the results of a Query, including hits/document and then the position of the term found. What makes it more complicated, is, that I have to use a PhaseQuery, to search for a list of terms. -- View this message in context: http://lucene.472066.n3.nabble.com/How-can-I-get-the

Re: lucene index program won't start after power failure

2016-09-29 Thread Ziming Dong
Thank you very much, I'll try it! On Thu, Sep 29, 2016 at 11:22 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > No ... I don't think Luke can recreate the segments file. > > I dug around and found the thread I was thinking of: > http://markmail.org/thread/ayl5q6rgtngeuoyy > > Just be

Re: null Query from MultiFieldQueryParser.getFieldQuery

2016-09-29 Thread Adrien Grand
I'm not very familiar with this part of the code base so I could easily overlook something. Maybe you can open a JIRA and attach a minimal test case that reproduces the issue? Le lun. 19 sept. 2016 à 13:48, Oliver Kaleske a écrit : > Hi, > > in updating Lucene from 6.1.0 to 6.2.0 I came across t

Re: lucene index program won't start after power failure

2016-09-29 Thread Michael McCandless
No ... I don't think Luke can recreate the segments file. I dug around and found the thread I was thinking of: http://markmail.org/thread/ayl5q6rgtngeuoyy Just be careful! Make a backup copy of your index first! Mike McCandless http://blog.mikemccandless.com On Thu, Sep 29, 2016 at 11:31 AM,

Re: suggestion for Lucene/Apache team

2016-09-29 Thread Adrien Grand
This sounds to me like something that is already happening. For instance over time we added the "pulsing" optimization to better handle PK lookups, added FST-based suggesters and recently added support for BKD trees in the index formats. I'm pretty sure this will keep happening. Le dim. 25 sept. 2

Re: Lucene 6 Query Parser - Does it support multi dimensional space queries?

2016-09-29 Thread Adrien Grand
Lucene does not have the notion of a schema so this won't work out of the box. However it is easy to customize by extending the getRangeQuery method in order to generate a PointRangeQuery rather than a TermRangeQuery. Le lun. 26 sept. 2016 à 15:21, Janaka Thilakarathna a écrit : > Hi Everyone, >

Re: How can I get the term positions from a query?

2016-09-29 Thread Adrien Grand
There are multiple answers to this question depending on what you are actually trying to do, can you tell us more about the use-case? Le jeu. 29 sept. 2016 à 16:26, szzoli a écrit : > Hi, > > How can I get the term positions from a query? It was in the docs, that it > must be ceated at indexing

How can I get the term positions from a query?

2016-09-29 Thread szzoli
Hi, How can I get the term positions from a query? It was in the docs, that it must be ceated at indexing time. But how? And later, how can I retieve them, for each term? Is it possible for each Query? -- View this message in context: http://lucene.472066.n3.nabble.com/How-can-I-get-the-term-

Re: lucene index program won't start after power failure

2016-09-29 Thread Ziming Dong
do you mean `http://www.getopt.org/luke/`? On Mon, Sep 26, 2016 at 4:58 AM, Michael McCandless < luc...@mikemccandless.com> wrote: > It is in theory possible to reconstruct a segments file by ls-ing all > other index files and manually rebuilding it but it is not an easy > task and it would have