- 博客(14)
- 收藏
- 关注
原创 Solr.IndexWriter源码分析.7
2021SC@SDUSC/** 将段文件按原样复制到 IndexWriter 的目录中。 */ private SegmentCommitInfo copySegmentAsIs(SegmentCommitInfo info, String segName, IOContext context) throws IOException { // 与以前相同的 SI,但我们更改了目录和名称 SegmentInfo newInfo = new SegmentInfo(directo
2021-12-25 13:18:34
308
原创 Solr.AttributeSourcey源码分析
2021SC@SDUSC/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this f
2021-12-25 13:08:07
341
原创 Solr.AttributeImpl源码分析
2021SC@SDUSC/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this f
2021-12-25 13:00:58
315
原创 Solr.AttributeFactory源码分析
2021SC@SDUSC/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this f
2021-12-25 12:56:21
212
原创 Solr.IndexWriter源码分析.6
2021SC@SDUSC/** * 删除索引中的所有文档。 * * <p> * 此方法将删除所有缓冲的文档并删除所有段 * 来自索引。直到 {@link #commit()} * 已被调用。可以使用 {@link #rollback()} 回滚此方法。 * </p> * * <p> * 注意:此方法比使用 deleteDocuments( new * MatchAllDocsQuery() )。然而,这种方
2021-12-25 12:50:50
387
原创 Solr.IndexWriter源码分析.5
2021SC@SDUSC/** * 将文档的 DocValues 字段更新为给定的值。 每场更新应用于与 * {@link Term} 到相同的值。 所有更新都以原子方式应用,并且 * 冲在一起。 如果文档值字段数据为 <code>null</code> 现有的 * 值从与该术语匹配的所有文档中删除。 * * * @param updates * the updates to apply * *
2021-12-25 12:45:21
345
原创 Solr.Document源码分析
2021SC@SDUSC/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this f
2021-10-17 23:53:31
233
原创 Solr.分词器总览
2021SC@SDUSC 分词器概述代码分析代码概述TokenStream抽象类中的import包分析分词器概述首先我们需要明确的是Solr 是一个基于 Apache Lucene 之上的搜索服务器,这也意味着Lucene相当于solr的底层,Solr中的源代码包含着Lucene的源代码,所以本次博客首先分析的代码为Lucene中analyzer的代码。所谓Analyzer就是词法分析器,分词器。分词器是Lucene以及Solr中极其重要的一个部分,在创建索引时需要分词器,在检索时同样需要分词器,
2021-10-10 21:38:12
1445
3
原创 Solr综述
2021SC@SDUSC项目名称:SolrSolr简单介绍:Solr 是一个基于 Apache Lucene 之上的搜索服务器,它是一个开源的、基于 Java 的信息检索库。它旨在驱动功能强大的文档检索应用程序 - 无论您需要根据用户的查询将数据服务到何处,Solr 都可以为您服务。安装说明:Solr 可从 Solr 网站获取。您可以在此下载最新版本的Solr:https://lucene.apache.org/solr/mirrors-solr-latest-redir.html。
2021-09-30 20:03:27
163
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人