Document.getField(field).stringValue() behavior

2007-12-01 Thread Cauvery Developer
Hi, I am working with demo and I am displaying the search results as : Hits ht = is.search(q); for (int i = 0; i <= ht.length(); i++) { Document hitDoc = ht.doc(i); queryResult.add(hitDoc.getField("name").toString() + "~" + hitDoc.getField("date").toString()); System.out.println(que

setRAMBufferSizeMB and DEFAULT_RAM_BUFFER_SIZE_MB missing from IndexWriter !

2007-12-01 Thread Cauvery Developer
Hi, I am having lucene-core-2.2.0.jar in my CLASSPATH. I do NOT see the method setRAMBufferSizeMB method and the field DEFAULT_RAM_BUFFER_SIZE_MB missing from IndexWriter class. I looked into the source also and sure enough, these items do not exist. Is this a download issue ? Regards, Nags.

Re: setRAMBufferSizeMB and DEFAULT_RAM_BUFFER_SIZE_MB missing from IndexWriter !

2007-12-01 Thread Michael McCandless
Hi, These are new APIs, available only in the unreleased trunk (2.3-dev) version of Lucene. They are not present in 2.2. You can pull the nightly trunk build JAR from here: http://lucene.zones.apache.org:8080/hudson/job/Lucene-Nightly/290/artifact/artifacts/ (that's this AM's build). Bu

Re: setRAMBufferSizeMB and DEFAULT_RAM_BUFFER_SIZE_MB missing from IndexWriter !

2007-12-01 Thread Cauvery Developer
oh ! I saw them in the javadoc so I got confused. Thanks, Michael. Regards, Nags On Dec 1, 2007 3:05 PM, Michael McCandless <[EMAIL PROTECTED]> wrote: > > Hi, > > These are new APIs, available only in the unreleased trunk (2.3-dev) > version > of Lucene. > > They are not present in 2.2. > > You

Re: Document.getField(field).stringValue() behavior

2007-12-01 Thread Michael McCandless
If you call .stringValue() you should get just that string? (You are now calling .toString()). Mike "Cauvery Developer" <[EMAIL PROTECTED]> wrote: > Hi, > I am working with demo and I am displaying the search results as : > > Hits ht = is.search(q); > for (int i = 0; i <= ht.length(); i++) { >

Re: Document.getField(field).stringValue() behavior

2007-12-01 Thread Cauvery Developer
aaarghhh You are right, Michael. Apologies for the stupid question. Regards, Nags. On Dec 1, 2007 3:07 PM, Michael McCandless <[EMAIL PROTECTED]> wrote: > > If you call .stringValue() you should get just that string? > > (You are now calling .toString()). > > Mike > > "Cauvery

Term(String, BufferedReader) constructor ?

2007-12-01 Thread Cauvery Developer
Hi, If we are able to create a Field using a BufferedReader, why not do the same for the Term as well ? I am trying to implement Lucene for a small set of source files, where the entire source is the value for a Field named 'source'. Creating the field was easy because there is a constructor for F

Re: Term(String, BufferedReader) constructor ?

2007-12-01 Thread Michael McCandless
"Cauvery Developer" <[EMAIL PROTECTED]> wrote: > I know, I can I use IndexWriter with createFlag set to false while > updating. But, this sounds too "comprehensive". Nomatter what if you are going to update a document, you will have to open a writer for doing so (or, use a writer you already hav

[jira] Created: (LUCENE-1073) Add unit test showing how to do a "live backup" of an index

2007-12-01 Thread Michael McCandless (JIRA)
Add unit test showing how to do a "live backup" of an index --- Key: LUCENE-1073 URL: https://issues.apache.org/jira/browse/LUCENE-1073 Project: Lucene - Java Issue Type: Improvement

[jira] Updated: (LUCENE-1073) Add unit test showing how to do a "live backup" of an index

2007-12-01 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless updated LUCENE-1073: --- Attachment: LUCENE-1073.patch Attached patch that has a class (SnapshotDeletionPolic

[jira] Commented: (LUCENE-1073) Add unit test showing how to do a "live backup" of an index

2007-12-01 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547413 ] Michael McCandless commented on LUCENE-1073: Woops, the new testcase is failing on windows ... I'll trac

[jira] Updated: (LUCENE-1073) Add unit test showing how to do a "live backup" of an index

2007-12-01 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless updated LUCENE-1073: --- Attachment: LUCENE-1073.take2.patch Attached new patch to fix the intermittant failu

Re: setRAMBufferSizeMB and DEFAULT_RAM_BUFFER_SIZE_MB missing from IndexWriter !

2007-12-01 Thread Grant Ingersoll
Right, the javadocs are for the nightly build. See the Site Versions section of http://lucene.apache.org/java/docs/index.html for releases. Also, these questions are best asked on [EMAIL PROTECTED] We try to keep java-dev for discussion of development of the actual library. Thanks! -G

Re: Profiling tools

2007-12-01 Thread Doug Cutting
Michael Busch wrote: They offer a free open-source license (http://www.yourkit.com/purchase/index.jsp), however they ask to add a reference to their website to the OS website. Apache frowns on this. They should grant a license to you personally, as an open-source developer, not to the project

[jira] Created: (LUCENE-1074) Workaround in Searcher.java for gcj bug#15411 no longer needed

2007-12-01 Thread Paul Elschot (JIRA)
Workaround in Searcher.java for gcj bug#15411 no longer needed -- Key: LUCENE-1074 URL: https://issues.apache.org/jira/browse/LUCENE-1074 Project: Lucene - Java Issue Type: Improvem

[jira] Commented: (LUCENE-1074) Workaround in Searcher.java for gcj bug#15411 no longer needed

2007-12-01 Thread Paul Elschot (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547490 ] Paul Elschot commented on LUCENE-1074: -- See also LUCENE-288 > Workaround in Searcher.java for gcj bug#15411 no

[jira] Commented: (LUCENE-1074) Workaround in Searcher.java for gcj bug#15411 no longer needed

2007-12-01 Thread Paul Elschot (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547492 ] Paul Elschot commented on LUCENE-1074: -- The target gcc release for this fix is 4.3.0, which is not yet released

[jira] Commented: (LUCENE-1073) Add unit test showing how to do a "live backup" of an index

2007-12-01 Thread Michael Busch (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547496 ] Michael Busch commented on LUCENE-1073: --- Looks great, Mike! Maybe we should add SnapshotDeletionPolicy to the

Re: [jira] Created: (LUCENE-1074) Workaround in Searcher.java for gcj bug#15411 no longer needed

2007-12-01 Thread Andi Vajda
On Sat, 1 Dec 2007, Paul Elschot (JIRA) wrote: Workaround in Searcher.java for gcj bug#15411 no longer needed -- Key: LUCENE-1074 URL: https://issues.apache.org/jira/browse/LUCENE-1074 Proje

[jira] Commented: (LUCENE-584) Decouple Filter from BitSet

2007-12-01 Thread Michael Busch (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547524 ] Michael Busch commented on LUCENE-584: -- {quote} The patch is backwards compatible, {quote} I think that custom

[jira] Reopened: (LUCENE-1019) CustomScoreQuery should support multiple ValueSourceQueries

2007-12-01 Thread Kyle Maxwell (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kyle Maxwell reopened LUCENE-1019: -- Lucene Fields: [New, Patch Available] Hi, after trying out the combined valuesource implementa