BigDecimal values

2008-11-20 Thread Sergey Kabashnyuk
Hello I want to ask community an advice: what is the best way to index and search java.math.BigDecimal values in lucene 2.4. Any code snippets are welcome. Sergey Kabashnyuk eXo Platform SAS - To unsubscribe, e-mail: [EMAIL

Re: BigDecimal values

2008-11-20 Thread Sergey Kabashnyuk
Thanks Ian Unfortunately, I have to index any possible number of java.math.BigDecimal I can rephrase my question this way: How can I convert java.math.BigDecimal numbers in to string for its storing in lexicographical order Sergey Kabashnyuk eXo Platform SAS Hi Lucene only indexes strings

generate-maven-artifacts

2008-01-15 Thread Sergey Kabashnyuk
2_0/common-build.xml:200: localRepository doesn't support the "location" attribute Can you help me? Sergey Kabashnyuk. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - To unsubscribe,

from 2.2.0 to 2.3.0

2008-02-15 Thread Sergey Kabashnyuk
Hi I want to update from lucene 2.2.0 to 2.3.0 but I have assert it TermInfosWriter line 143. What is it mean assert compareToLastTerm(fieldNumber, termText, termTextStart, termTextLength) < 0 || (isIndex && termTextLength == 0 && lastTermTextLength == 0); Can you help me?

Re: from 2.2.0 to 2.3.0

2008-02-15 Thread Sergey Kabashnyuk
org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1204) at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1178) at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1153) Where I can find CheckIndex.tool ? Sergey Kabashnyuk Can you provide the full stack trace, and any

Re: from 2.2.0 to 2.3.0

2008-02-15 Thread Sergey Kabashnyuk
2.3.0 instead of Exceptions. Why it's not very informative? I'll open a Jira issue & fix it on the 2.3 branch (so this is fixed in 2.3.1). Thanks for reporting this! Mike Sergey Kabashnyuk wrote: stack trace java.lang.AssertionError at org.apache.lucene.index

Transactions in Lucene

2008-02-22 Thread Sergey Kabashnyuk
Hi. I have a question about transactions in Lucene. Lets say I have 1000 Documents and want to add all of them or none of them(if something happen) to the index. What the best strategy to do it in multithreaded environment? Sergey Kabashnyuk

Re: Transactions in Lucene

2008-02-22 Thread Sergey Kabashnyuk
one index? Sergey Kabashnyuk. You should open the IndexWriter with autoCommit=false, then make changes. During this time, any reader that opens the index will not see any changes you are making. Then, you can call close() to commit the changes to the index, or abort() to rollback the index

Hits.

2008-03-07 Thread Sergey Kabashnyuk
Hi. I have a question about retrieving information. Lets say I have an index which contents a millions of documents with 2-3 small fields an a 10 large fields. Then I run a query which returns me a 1000 of hits. But I am interested only one small field, and I don't want to load other fields.

The best strategy to "How store multiple fields of same document"

2008-07-31 Thread Sergey Kabashnyuk
EMAIL PROTECTED] What choice the best for search speed and resource usage? Thanks. Sergey Kabashnyuk eXo Platform SAS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: The best strategy to "How store multiple fields of same document"

2008-07-31 Thread Sergey Kabashnyuk
count or fields size, as database do? I mean to determinate position of row X in index: positionX = sum(fieldsize[1]+...fieldsize[i])*(X-1) Sergey Kabashnyuk eXo Platform SAS I'd go with option 1 unless and until you could demonstrate performance problems. Speaking of which, you'd get

Tree search

2008-08-07 Thread Sergey Kabashnyuk
the best way it can be implemented? Moving is very often operation and storing full path can cost with additional unwanted operations and therefore it's not a desirable solution Sergey Kabashnyuk eXo Platform SAS - To unsubs

Re: Tree search

2008-08-07 Thread Sergey Kabashnyuk
Thanks for you reply Glen But I saw this solution before. And as I said before, moving is very often operation and storing full path can cost additional unwanted operations and therefore it's not a desirable solution. Sergey Kabashnyuk eXo Platform SAS There are a number of ways to do

Re: Case Sensitivity

2008-08-14 Thread Sergey Kabashnyuk
Dino -- Sergey Kabashnyuk eXo Platform SAS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Case Sensitivity

2008-08-14 Thread Sergey Kabashnyuk
oming up with a reason to do both that wouldn't be satisfied by just a caseless search. Best Erick On Thu, Aug 14, 2008 at 4:47 AM, Sergey Kabashnyuk <[EMAIL PROTECTED]>wrote: Hello. I have the similar question. I need to implement 1. Case sensitive search. 2. Lower case search fo

Re: Case Sensitivity

2008-08-15 Thread Sergey Kabashnyuk
like : new Field(“text”, Field.Store.NO, Field.Index.NO_NORMS,Field.TermVector.NO) using StandardAnalyzer and query 1-3 works perfectly as I need. The question is how create query 4-5? Thanks Sergey Kabashnyuk eXo Platform SAS Be aware that StandardAnalyzer lowercases all the input, both at inde