You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Nik V. Babichev (JIRA)" <ji...@apache.org> on 2012/06/18 16:21:42 UTC

[jira] [Comment Edited] (SOLR-3555) Lucene DirectoryReader can't find *.frq files created by solr

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

Nik V. Babichev edited comment on SOLR-3555 at 6/18/12 2:20 PM:
----------------------------------------------------------------

Thanks, 

I resolve my current problem.

I build solr.war from SVN branch_4x 
and use maven artifact from 4.0-SNAPSHOT (https://repository.apache.org/content/groups/snapshots)
for lucene requests.
As I see 4.0-SNAPSHOT have difference with svn version.

Trunk and 5.0-SNAPSHOT works well
                
      was (Author: sharky):
    Thanks, 

I resolve my current problem.

I build solr.war from SVN branch_4x 
and use maven artifact from 4.0-SNAPSHOT (https://repository.apache.org/content/groups/snapshots)
for lucene requests.
As I see 4.0-SNAPSHOT have difference with svn version.

Will try trunk and 5.0-SNAPSHOT
                  
> Lucene DirectoryReader can't find *.frq files created by solr
> -------------------------------------------------------------
>
>                 Key: SOLR-3555
>                 URL: https://issues.apache.org/jira/browse/SOLR-3555
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Nik V. Babichev
>
> Create index with Solr4
> In index directory have such files:
> _0_Lucene40_0.frq
> _0_Lucene40_0.prx
> _0_Lucene40_0.tim
> _0_Lucene40_0.tip
> When try to open index by Lucene Directory reader got:
> java.io.FileNotFoundException: /opt/solr4/irotor/data/docs/index/_0_Lucene40.frq (No such file)
> File idxLocation = new File('path to index');
> DirectoryFactory df = new StandardDirectoryFactory();
> DirectoryReader.open(df.get(idxLocation.getAbsolutePath(), "native"))
> Exception generated in this method:
> org.apache.lucene.codecs.lucene40.Lucene40PostingsReader(Directory dir, FieldInfos fieldInfos, SegmentInfo segmentInfo, IOContext ioContext, String segmentSuffix);
> freqIn = dir.openInput(IndexFileNames.segmentFileName(segmentInfo.name, segmentSuffix, Lucene40PostingsFormat.FREQ_EXTENSION), ioContext);
> When try to open unexisting _0_Lucene40.frq instead of _0_Lucene40_0.frq

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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