You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jason Rutherglen (JIRA)" <ji...@apache.org> on 2008/06/23 19:14:45 UTC

[jira] Updated: (LUCENE-1314) IndexReader.reopen(boolean force)

     [ https://issues.apache.org/jira/browse/LUCENE-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Rutherglen updated LUCENE-1314:
-------------------------------------

    Attachment: lucene-1314.patch

lucene-1314.patch

First cut at this, seems to work as desired.  Need to come up with a test case for it.  

Does anyone know how to turn off Eclipse automatically changing the import statements?  I am not making it reformat but if I edit some code in a file it sees fit to reformat the imports.  

> IndexReader.reopen(boolean force)
> ---------------------------------
>
>                 Key: LUCENE-1314
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1314
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Index
>    Affects Versions: 2.3.1
>            Reporter: Jason Rutherglen
>            Priority: Minor
>         Attachments: lucene-1314.patch
>
>
> Based on discussion http://www.nabble.com/IndexReader.reopen-issue-td18070256.html.  The problem is reopen returns the same reader if there are no changes, so if docs are deleted from the new reader, they are also reflected in the previous reader which is not always desired behavior.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: [jira] Updated: (LUCENE-1314) IndexReader.reopen(boolean force)

Posted by Jason Rutherglen <ja...@gmail.com>.
Project -> Properties -> Java Editor -> Save Actions  Check "Perform the
selected actions on save" Uncheck Organize Imports is the correct answer now
in Google

On Mon, Jun 23, 2008 at 4:07 PM, Mike Klaas <mi...@gmail.com> wrote:

> On 23-Jun-08, at 10:14 AM, Jason Rutherglen (JIRA) wrote:
>
>>
>> Does anyone know how to turn off Eclipse automatically changing the import
>> statements?  I am not making it reformat but if I edit some code in a file
>> it sees fit to reformat the imports.
>>
>
>
> http://www.google.com/search?q=turn%20off%20eclipse%20changing%20import%20statements
>
> ----------------
> I'm running into a problem where Organize Imports is removing all of my
> import statements. I had to turn off "Keep Imports Organized" because I
> noticed that ...
> ----------------
>
> -Mike
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>

Re: [jira] Updated: (LUCENE-1314) IndexReader.reopen(boolean force)

Posted by Mike Klaas <mi...@gmail.com>.
On 23-Jun-08, at 10:14 AM, Jason Rutherglen (JIRA) wrote:
>
> Does anyone know how to turn off Eclipse automatically changing the  
> import statements?  I am not making it reformat but if I edit some  
> code in a file it sees fit to reformat the imports.

http://www.google.com/search?q=turn%20off%20eclipse%20changing%20import%20statements

----------------
I'm running into a problem where Organize Imports is removing all of  
my import statements. I had to turn off "Keep Imports Organized"  
because I noticed that ...
----------------

-Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org