知识点
相关文章
更多最近更新
更多Solr配置相关推荐
2019-03-27 01:07|来源: 网路
Solr的相关推荐其实用了Lucene的MoreLikeThis,在Solr使用很简单,只需简单配置即可。
//配置如下:
<!-- request handler likehua -->
<requestHandler name="/mlt" class="solr.MoreLikeThisHandler">
</requestHandler>
请求:http://localhost:1985/solr/mlt?q=geo_name:HJ&mlt.true&mlt.fl=name&mlt.mintf=1&mlt.mindf=1
请求结果:
<?
xml version="1.0" encoding="UTF-8"
?>
<
int
name
="
status
"
>
0
</
int
>
<
int
name
="
QTime
"
>
656
</
int
>
</
lst
>
<
str
name
="
geo_name
"
>
HJ1B-CCD1-26-74-L20000034219
</
str
>
<
str
name
="
geo_summary
"
>
GEOTIFF
</
str
>
<
str
name
="
id
"
>
5662528
</
str
>
</
doc
>
</
result
>
<
result
name
="
response
"
numFound
="
0
"
start
="
0
"
/>
</
response
>
参数不解释。
转自:http://www.cnblogs.com/likehua/archive/2012/12/26/2834611
相关问答
更多-
请问solr suggest如何配置搜索中文建议[2022-10-06]
建议的来源使用中文词库 -
推荐一本mysql相关的书籍[2022-02-21]
高性能MySQL(第3版) 这本书我看过, 很不错 , 你可以在当当搜索, 五星级评价 -
solr+tomcat如何配置[2023-04-25]
tomcat配置数据源solr使用数据源 1、tomcat中配置数据源(注:需要拷贝jdbc相关jar包到tomcat中。tomcat6.x/lib目录下,注意tomcat6.0以下的版本在tomcat5.x/common/lib/目录下) 在server.xml文件,找到“Engine-> Host -> Context”,在其下面配置主要针对某一项目的数据源使用。 在context.xml文件,找到“Context”,在其下面配置可以让所有项目使用。 在Context下面配置数据源如下: 数据源相关参数 ... -
solr+tomcat如何配置[2023-08-17]
tomcat配置数据源solr使用数据源 1、tomcat中配置数据源(注:需要拷贝jdbc相关jar包到tomcat中。tomcat6.x/lib目录下,注意tomcat6.0以下的版本在tomcat5.x/common/lib/目录下) 在server.xml文件,找到“Engine-> Host -> Context”,在其下面配置主要针对某一项目的数据源使用。 在context.xml文件,找到“Context”,在其下面配置可以让所有项目使用。 在Context下面配置数据源如下: & ... -
SOLR配置麻烦(SOLR configuration troule)[2021-11-18]
我解决了这个问题,它是关于Cygwin文件夹的文件权限,Solr colud不创建文件夹。 我手动更改了访问权限。 I solved the problem, it was about file permissions at Cygwin folder, the Solr coludn't create folders. I changed manually the access rights. -
SOLR按相关性排序(SOLR sort by relevancy)[2024-03-09]
仅供参考我的一个例子我正在使用fl id和score字段 http://localhost:8983/solr/test/select?fl=id,score&indent=on&q=ipod&wt=json 对于查询q=ipod我们有6个文件从solr返回,这是它的外观。 您可以注意到文档按相关性得分值排序。(描述顺序,默认) response":{"numFound":6,"start":0,"maxScore":4.391201,"docs":[ { "id":"IW-0 ... -
使用Solr配置solrnet(Configure solrnet with Solr)[2022-06-21]
最新的Solr作为独立黑匣子运行。 不要看Tomcat信息的古老教程,它们不再有用。 这是通过.NET客户端连接到它的一个单独问题。 对于客户端部分,SolrNet的源代码版本更新。 它应该与最新的Solr一起工作,主要问题是Solr的URL现在必须包含集合名称,所以http:// localhost:8983 / solr / collectionname 。 检查参数以设置核心或集合或类似。 还有Solr Express,你可能想看看。 Latest Solr runs as standalone bl ... -
如何配置SOLR用于词干(How to configure SOLR for stemming)[2023-06-26]
尝试使用以下fieldType ....去Solr 4.10.x. 你会省去很多麻烦。 Solr 5.x中没有太多新东西对Sitecore应用程序有益。 我不确定bitnami安装程序,但据我所知,Sitecore最受欢迎的Solr版本之一是Solr 4.10.4 。 您可以从http://archive.apache.org/dist/lucene/solr/下载它 Go for Solr 4.10.x. You will save a lot of troubles. And there is not much new in Solr 5.x ...你不需要做任何特别的事情。 只需为您的发行版获取Tesseract OCR设置并将其安装在系统上。 确保您的PATH变量具有Tesseract主目录的条目,并且设置了TESSDATA_PREFIX变量,并且还指向Tesseract主目录。 重新启动Solr,你很高兴。 通过/update/extract处理程序将文档推送到索引时,您应该能够看到OCR组件。 默认情况下,Tesseract仅附带英文模型。 从这里获取其他语言的模型。 You don't need to do anything special. ...