lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-1969) Make MMapDirectory configurable in solrconfig.xml
Date Sun, 27 Jun 2010 08:33:50 GMT

    [ https://issues.apache.org/jira/browse/SOLR-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882933#action_12882933
] 

Simon Willnauer commented on SOLR-1969:
---------------------------------------

bq. I think the indentation may be much different than that in Solr
please make sure you are using 2 spaces instead of tabs though.

bq. Is there no class in Lucene that contains the list of all the Lucene index file extensions?
org.apache.lucene.index.IndexFileNames might help here

bq. Why is one of the collections a List and the other one a Set? Can't they both be Sets?

it should really be a Set though and IMO all of those members should be private final [static]

You might wanna make them immutable too, but that is just a style question here.


simon

> Make MMapDirectory configurable in solrconfig.xml
> -------------------------------------------------
>
>                 Key: SOLR-1969
>                 URL: https://issues.apache.org/jira/browse/SOLR-1969
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 1.4
>            Reporter: Stephen Bochinski
>         Attachments: mmap_upd.txt, mmap_upd.txt
>
>   Original Estimate: 102.5h
>  Remaining Estimate: 102.5h
>
> This will make it so you can enable mmapdirectory from the solrconfig.xml file. There
are also several configurations you can specify in the solrconfig.xml file. You can enable
or disable the unmapping files which have been closed by solr. This is almost necessary for
an index which is being optimized. You also have the option to not mmap certain files. In
this case, FSDirectory will be used to manage those particular files. This is particularly
useful if you are using FieldCache (SOLR-1961). Having this enabled makes it useless to memory
map the .fdt and .fdx files, considering they are already in memory.
> The configurations are specified as follows:
> <directoryFactory class="solr.MMapDirectoryFactory">
>     <str name="unmap">true</str>
>     <lst name="filetypes">
>       <bool name="fdt">false</bool>
>       <bool name="fdx">false</bool>
>     </lst>
>   </directoryFactory>
> This would enable unmapping of closed files and would not memory map files ending with
.fdt and .fdx.

-- 
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message