`
zhyxfancy
  • 浏览: 52148 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

lecene使用碰到 no segments* file found in org.apache.

阅读更多
今天碰到的问题,问题发生在尝试索引东西的时候,在网上搜原因搜了很久也没解决
后来多试了几试终于发现问题所在:
writer = new IndexWriter(DIR, new StandardAnalyzer(), false);
writer = new IndexWriter(DIR, new StandardAnalyzer(), true);
在索引没有建立前,使用增量索引时,会发生这个异常
在索引建立时使用writer = new IndexWriter(DIR, new StandardAnalyzer(), true);
以后使用writer = new IndexWriter(DIR, new StandardAnalyzer(), false);
分享到:
评论

相关推荐

    基于JAVA的搜索引擎 lucene-2.2.0

    Exception in thread "main" java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.FSDirectory@E:\index: files: at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run...

    论文研究-Circle Segments 可视化技术应用研究 .pdf

    Circle Segments 可视化技术应用研究,程一博,胡俊,本文主要对Circle Segments可视化技术的应用做了研究。通过对比该技术在不同UCI数据集上的可视化结果,展示了其强大的可视化能力。通过

    vox-5segments.pth.tar

    vox-5segments.pth.tar

    matlabtocarrecognition.rar_In the Making_matlab 车牌识别_杞︾墝瀹氫綅_车牌定位

    % segments in the result with largest area, and in case less than seven % segments were found, it attempts to recall the function, making the % separation between the already found segments clearer...

    c# 操作INI文件类

    private void TestINI_Load(object sender, System.EventArgs e) { //创建一个INIFile对象,参数为文件路径,如果不存在它会自动创建的 INIFile inf=new INIFile(@"D:\工作目录\VSPP\VSPPServer\bin\Debug\...

    c#操作ini文件

    private void TestINI_Load(object sender, System.EventArgs e) { //创建一个INIFile对象,参数为文件路径,如果不存在它会自动创建的 INIFile inf=new INIFile(@"D:\工作目录\VSPP\VSPPServer\bin\Debug\...

    MP3 Splitter & Joiner Pro v5.1+Keygen.rar

    - Supports to load audio files to split or merge in Windows Explorer directly: right-click the files (including *.cue, *. pls, *.m3u ), and select to open with MP3 Splitter & Joiner Pro in 'open with'...

    Python库 | decision-segments-0.1.0.tar.gz

    资源分类:Python库 所属语言:Python 资源全名:decision-segments-0.1.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    Apache Hadoop 3.x state of the union and upgrade guidance

    Apache Hadoop YARN is the modern distributed operating system for big data applications. It morphed the Hadoop compute layer to be a common resource-management platform that can host a wide variety of...

    using-liferay-portal-6.2.pdf

    5.3 Alternative File Repository Options . . . . . . . . . . . . . . . . . . . . 119 5.4 Using External Repositories . . . . . . . . . . . . . . . . . . . . . . . . 119 5.5 Configuring the Documents ...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    Added TFlexFileFormat.StreamSupport property (default True), which difines, is it necessary to open file stream or give the file name only. - FIX: If the TCustomProp.Assign method calls when the ...

    Canvas撤回操作及前进功能(Javascript)

    * self.selectCanvas.getContext("2d").saveHistory(points, copy_segments, copy_rounds, copy_controlLine, * copy_selectedSegments, copy_selectedPoints); * 回撤及前进功能代码示例 * $(window).keydown...

    Tricks of the Windows video Game Programming---part1

    Tricks of the Windows video Game Programming <br>PART I Windows Programming Foundations 7 1 Journey into the Abyss 9 A Little History.............................................................

    greenplum-db-6.2.1-rhel7-x86_64.rpm

    The PXF_USER_IMPERSONATION, PXF_PRINCIPAL, and PXF_KEYTAB settings in the pxf-env.sh file. You can use the pxf-site.xml file to configure Kerberos and impersonation settings for your new Hadoop server...

    Iczelion教程系列

    There's no more 64K segments. The memory is a large continuous space of 4 GB. That also means you don't have to play with segment registers. You can use any segment register to address any point in ...

    Sort Poems.cpp

    For example, the poem shown in Figure 1 is saved in two files as shown in Figure 2, provided that each file can only contain up to 4 lines. Notice that a blank line is also counted as a line in the ...

    kamon-example

    trace.segments.*.elapsed-time.upper_75Graphite 可以在 81 端口访问,为了获取容器的 ip,运行: docker inspect kamon-grafana-dashboard | grep IPAddress构建泊坞窗图像: sudo docker build -t akomar/kamon-...

    Solving PDE in C++: Numerical Methods in a Unified Object-Oriented Approach

    ThisbookteachesC++... The code segments and their detailed explanations show how easy it is to implement advanced algorithms such as finite elements and multigrid.

    keras报错:ValueError: Cannot create group in read only mode

    keras保存模型时,使用的是m.save_weights,只保存了模型的权重而没有结构,直接使用keras.models.load_model就会报错。所以,可以重新构建相同结构的模型,(m.save_weights)使用m.load_weights;或者如上m.save,...

    kgb档案压缩console版+源码

    Decompression: No file names are specified. The archive must exist. If a path is stored, the file is extracted to the appropriate directory, which must exist. PAQ6 does not create directories. If the ...

Global site tag (gtag.js) - Google Analytics