Re: about some date store

2012-07-11 Thread sam
it's take a new problem,what even I seaching,I can only get the first line data,if the data can be seach.and ,when i find my content in luke.i can find all the data in the content,but i just can not show it. -- View this message in context: http://lucene.472066.n3.nabble.com/about-some-date-store

delete by docid in lucene 4

2012-07-11 Thread Sean Bridges
Is it possible to delete by docId in lucene 4? I can delete by docid in lucene 3 using IndexReader.deleteDocument(int docId), but that method is gone in lucene 4, and IndexWriter only allows deleting by Term or Query. This is our use case - In our system, each document is identified by a unique

Re: Lucene 3.5 Query Parser Question

2012-07-11 Thread Ian Lea
I think you'll have to build the query up in code. RegexQuery in the contrib queries package should be able to take care of #[0-9]. BooleanQuery bq = new BooleanQuery(); PrefixQuery pq = new PrefixQuery(...) // # RegexQuery rq = new RegexQuery(...) // #[0-9] bq.add(pq, ); bq.add(rq, ...); an

Lucene 3.5 Query Parser Question

2012-07-11 Thread Dave Seltzer
Hello, I'm interested in searching a MemoryIndex to find occurrences of HashTags. To do this I'm trying to use the following query: #* -#[0 TO 9] My goal with this query is to look for any word starting with "#" except for words like "#1". However, when I parse this query, the query parser turn

BrazilianAnalyzer don't woks with any BooleanQuery

2012-07-11 Thread Marcelo Neves
Hi all, I create a method above que generate my boolean query based in many parameters. The query's on not analyzed fields works perfect in debug. When start a search using any analyzed field with BrazilianAnalyzer, always a return empty result (zero docs). I do test in separeted solution with

RE: RAMDirectory and expungeDeletes()/optimize()

2012-07-11 Thread Steven A Rowe
Nabble silently drops content from email sent through their interface on a regular basis. I've told them about it multiple times. My suggestion: find another way to post to this mailing list. -Original Message- From: Michael McCandless [mailto:luc...@mikemccandless.com] Sent: Wednesda

Re: RAMDirectory and expungeDeletes()/optimize()

2012-07-11 Thread Michael McCandless
What I meant was your original email says "My code looks like", followed by blank lines, and then "Doesn't it conflict with the JavaDoc saying:", followed by blank lines. Ie we can't see your code. However, when I look at your email here at http://lucene.472066.n3.nabble.com/RAMDirectory-and-expun

Re: RAMDirectory and expungeDeletes()/optimize()

2012-07-11 Thread Konstantyn Smirnov
JavaDoc comes from here http://lucene.apache.org/core/3_6_0/api/all/org/apache/lucene/index/IndexWriter.html#expungeDeletes() other blanks are here because it's groovy :) Or what did you mean exactly? -- View this message in context: http://lucene.472066.n3.nabble.com/RAMDirectory-and-expungeDel

Re: Lucene 4.0: Custom Query Parser newTermQuery(Term term) override

2012-07-11 Thread Jamie
Yonik Thanks for the tip.However, from what I can see, I still need to return a TermQuery specific to each data type. Does anyone know how to convert a string value to TermQuery for each data type? Jamie On 2012/07/11 3:42 PM, Yonik Seeley wrote: On Wed, Jul 11, 2012 at 9:34 AM, Jamie wro

Re: Lucene 4.0: Custom Query Parser newTermQuery(Term term) override

2012-07-11 Thread Yonik Seeley
On Wed, Jul 11, 2012 at 9:34 AM, Jamie wrote: > I am busying attempting to integrate Lucene 4.0 Alpha into my code base. I > have a custom QueryParser that extends QueryParser and overrides > newRangeQuery and newTermQuery Random pointer: for most special case field handling, one would want to ov

Lucene 4.0: Custom Query Parser newTermQuery(Term term) override

2012-07-11 Thread Jamie
Hi Everyone I am busying attempting to integrate Lucene 4.0 Alpha into my code base. I have a custom QueryParser that extends QueryParser and overrides newRangeQuery and newTermQuery to support typed fields. I think I've figured out the newRangeQuery method translation (shown further down belo

Re: index searcher leading to system freeze ?

2012-07-11 Thread Israel Tsadok
I'm not sure this is at all related, but we've had high cpu loads on our servers due to the leap second kernel bug - http://serverfault.com/questions/403732/ . On Wed, Jul 11,

Re: RAMDirectory and expungeDeletes()/optimize()

2012-07-11 Thread Michael McCandless
There are blanks at the important places (your code, and which JavaDoc) in your email! Mike McCandless http://blog.mikemccandless.com On Wed, Jul 11, 2012 at 6:18 AM, Konstantyn Smirnov wrote: > Hi all > > in my app (Lucene 3.5.0 powered) I index the documents (not too many, say up > to 100k) u

Re: index searcher leading to system freeze ?

2012-07-11 Thread Simon Willnauer
are you closing your underlying IndexReaders properly? simon On Wed, Jul 11, 2012 at 5:04 AM, Yang wrote: > I'm running 8 index searchers java processes on a 8-core node. > They all read from the same lucene index on local hard drive. > > > the index contains about 20million docs, each doc is

Re: about some date store

2012-07-11 Thread Danil Ε’ORIN
Listen to Uwe. Keeping your date/time in milliseconds is the best solution. You don't care about how the user likes his data DD.MM. (Europe) of MM.DD.(US), about timezones, daylight saving changes, leap seconds, or any other complications. Your dates are simple long numbers, you can easy

Re: storing pre-analyzed fields

2012-07-11 Thread Michael Sokolov
Uwe - thank you very much for the thorough explanation! -Mike On 7/11/2012 1:14 AM, Uwe Schindler wrote: Hi Mike, The order does not matter at all in all versions of Lucene. You also don't need to subclass AbstractField (but you can use e.g. NumericField as an example); it is enough to use ne

RAMDirectory and expungeDeletes()/optimize()

2012-07-11 Thread Konstantyn Smirnov
Hi all in my app (Lucene 3.5.0 powered) I index the documents (not too many, say up to 100k) using the RAMDirectory. Then I need to send the segment over the network to be merged with the existing index other there. The segment need to be as "slim" as possible, e.g. without any pending deleted do

RE: about some date store

2012-07-11 Thread Uwe Schindler
Hi, Use NumericField and NumericRangeQuery to query. For sorting use the corresponding datatype. In the numeric field you would parse the date to a number (e.g. milliseconds since epoch) and index it using NumericField. To print them, use SimpleDateFormat or whatever to convert the numeric value b

about some date store

2012-07-11 Thread sam
I want store some data like 00:00:00.123,it's string,i want print it as date .because i want sort it as date's increase. -- View this message in context: http://lucene.472066.n3.nabble.com/about-some-date-store-tp3994330.html Sent from the Lucene - Java Users mailing list archive at Nabble.com.

about some date store

2012-07-11 Thread sam
I want store some data like 00:00:00.123,it's string,i want print it as date .because i want sort it as date's increase. -- View this message in context: http://lucene.472066.n3.nabble.com/about-some-date-store-tp3994331.html Sent from the Lucene - Java Users mailing list archive at Nabble.com.