Implementing own Analyser components.

2016-10-31 Thread Sergey Repnikov
Hello. My name is Sergeiy, I'm working on Lucene's functionality extension. As I've read in JavaDoc for "org.apache.lucene.analysis" package, it's preferably to ask this email before extending, because some features could be done. So I want to have opportunity to perform search by parts of sp

Multivalued DocValuesField

2016-10-31 Thread Fielder, Todd Patrick
Hello, I have a question about Multivalued DocValuesFields...I am using Lucene 5.0 I am indexing an object that contains an Array of Sub-objects. Those sub-objects have a Long value that I need to index with fieldStore=true. That works just fine. I also want to sort that field and so I am att

Re: Multivalued DocValuesField

2016-10-31 Thread Alan Woodward
You need to use a SortedNumericDocValuesField, which allows for multiple numeric values to be stored per-document. I’m not sure if that’s in Lucene 5.0, though, you may need to upgrade to something more recent. Alan Woodward www.flax.co.uk > On 31 Oct 2016, at 15:34, Fielder, Todd Patrick wr

RE: [EXTERNAL] Re: Multivalued DocValuesField

2016-10-31 Thread Fielder, Todd Patrick
I'll give it a try, thanks...I appreciate your help -Todd -Original Message- From: Alan Woodward [mailto:a...@flax.co.uk] Sent: Monday, October 31, 2016 10:02 AM To: java-user@lucene.apache.org Subject: [EXTERNAL] Re: Multivalued DocValuesField You need to use a SortedNumericDocValuesFi

RE: [EXTERNAL] Re: Multivalued DocValuesField

2016-10-31 Thread Fielder, Todd Patrick
I tried your suggestion and was able to get the indexing to work (I assume it's correct), but now the search is throwing an error... unexpected docvalues type SORTED_NUMERIC for field 'Planned Completion Date' (expected=NUMERIC). Use UninvertingReader or index with docvalues. My search

RE: [EXTERNAL] Re: Multivalued DocValuesField

2016-10-31 Thread Fielder, Todd Patrick
I don't believe I have it working, but have made progress I believe the issue was I was using a SortField() instead of a SortedNumericSortField() -Todd -Original Message- From: Fielder, Todd Patrick [mailto:tpfi...@sandia.gov] Sent: Monday, October 31, 2016 1:46 PM To: java-user@lucene

ProximityQueryNode dosen't allow distance parameter to be 0

2016-10-31 Thread Jigar Shah
In some cases where tokens are indexed at same position. e.g. using (synonym filter). Queryparser Flexible API dosen't allow to create ProximityQueryNode with distance '0'. {code} if (type == Type.NUMBER) { if (distance <= 0) { throw new QueryNodeError(new MessageImpl(

Re: Implementing own Analyser components.

2016-10-31 Thread Fuad Efendi
Hi Sergey, Here is the table of tags from http://www.nltk.org/book/ch05.html Tag Meaning English Examples ADJ adjective new, good, high, special, big, local ADP adposition on, of, at, with, by, into, under ADV adverb really, already, still, early, now CONJ conjunction and, or, but, if, while, al

Re: an overview of the index format on Javadoc

2016-10-31 Thread Shinichiro Abe
I opened https://issues.apache.org/jira/browse/LUCENE-7532, attached a patch. Thank you, Shinichiro Abe 2016-10-29 18:50 GMT+09:00 Michael McCandless : > Yes please! This is a bug. We need to carry over (and update) the > old 6.0 package-info.java to 6.2 codec. Thank you. > > Mike McCandless >