solr

How to integrate spring-data-jpa and spring-data-solr?

谁说胖子不能爱 提交于 2019-12-13 03:44:59
问题 To enable full text search, I ever used hibernate-search and solrJ, No I am trying spring-data-solr, but found I seems not working together with spring-data-jpa. I just can't make the configuration correct. If I add the following solr configuration xml to my project.I get error message. The config xml file of spring-data-solr is: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http

Create index on two unrelated table in Solr

独自空忆成欢 提交于 2019-12-13 03:42:21
问题 I want to create index between two tables, stock and auction. Basically I am working on a product site. So I have to create index on both tables. and they are not related at all. In data-config.xml, that I created to create index, I wrote the following code <dataConfig> <dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/database" user="root" password=""/> <document name="content"> <entity name="stock" query="select ST_StockID,ST_StockCode,ST_Name,ST

SolrJ addFile keeps documents open

試著忘記壹切 提交于 2019-12-13 03:37:27
问题 I've already submitted a similar question, but I've broken down the problem to its simplest form, so I'm gonna post it again: The problem is, that SolrJ seems to keep file handles open, if I add the same file more than once. I use the following method to submit a document to Solr: public boolean addDocument( File doc ) throws IOException, SolrServerException { ContentStreamUpdateRequest csur = new ContentStreamUpdateRequest( "/update/extract" ); csur.addFile( doc ); csur.setParam( "literal.id

pecl/solr cant seem to install normaly

别说谁变了你拦得住时间么 提交于 2019-12-13 03:35:11
问题 I'm trying to connect to my Solr server trough PHP. I got a tutorial that users the SolrClient(). My but this was not available on my Linux (ubuntu) server. Now I'm trying to install it to my apache. The problem is that I cant seem to get the extensions working. I am trying to get it through sudo pecl install solr-beta . But this keeps giving the following error: Download of "pecl/solr" succeeded, but it is not a valid package archive. So my question is how can this be when this is according

How to filter a huge list of ids from Solr at runtime

烂漫一生 提交于 2019-12-13 03:29:06
问题 I have an index for products is Solr. I need to serve a customized list of products for each customer such that I have to exclude some specific products for each customer. Currently I am storing this relationship of customer & excluded products in a SQL database and then filtering them in Solr using a terms query. Is there a way I can store this relationship in Solr itself so that I dont have to calculate the exclude list every time from SQL first. Something very similar to what we can do in

How to create new core in solrj

こ雲淡風輕ζ 提交于 2019-12-13 03:22:39
问题 I am trying to create new core using solrj. I need it to prepare test for my app. I think this code is incomplete or wrong because every time I got a error "no core candidates". package com.itsystems.talentapp.config; import org.apache.solr.client.solrj.SolrClient; import org.apache.solr.client.solrj.SolrServerException; import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer; import org.apache.solr.client.solrj.request.CoreAdminRequest; import org.apache.solr.client.solrj.response

How to restrict user's Solr searching scope based on his/her entitlement

自闭症网瘾萝莉.ら 提交于 2019-12-13 02:51:48
问题 I have data that can only expose to people with entitlement, the data has a meta field call "system", there are hundreds of systems, we have authorized user pre-defined in a database, how can I design the system to allow the authorized user be granted only the data that he or she is entitled to? e.g. if Adam is from Equity team, he can view the search result from system 1-10 and not the rest; if Amily is from Audit team, she can view search result from all systems 1-200. Thank you very much.

CF10 Fieldboost on cfindex has no effect

百般思念 提交于 2019-12-13 02:44:42
问题 Maybe this is a new, mostly unused feature, but I am trying to create a collection based on a query from our DB. It's a simple Q&A and I'd like to rank the matches in the question higher than the answer. Seems logical as currently a search for "register for classes" the question "How do I register for classes" ranks lower than "How to I purchase books for my classes" because content in the books answers I guess matches better. So I'd like to bump the Q&A's if the question matches really well

Solr indexing issue (out of memory) - looking for a solution

旧街凉风 提交于 2019-12-13 01:48:45
问题 I have a large index of 50 Million docs. all running on the same machine (no sharding). I don't have an ID that will allow me to update the wanted docs, so for each update I must delete the whole index and to index everything from scratch and commit only at the end when I'm done indexing. My problem is that every few index runs, My Solr crashes with out of memory exception, I am running with 12.5 GB memory. From what I understand, until the commit everything is being saved in the memory, so I

Unable to verify crawled data stored in hbase

故事扮演 提交于 2019-12-13 01:25:38
问题 I have crawled website using 'nutch' with HBase as a storage back-end. I have referred this tutorial link- http://wiki.apache.org/nutch/Nutch2Tutorial . Nutch version is 2.2.1, HBase version 0.90.4 and Solr version 4.7.1 Here are the steps I used- ./runtime/local/bin/nutch inject urls ./runtime/local/bin/nutch generate -topN 100 -adddays 30 ./runtime/local/bin/nutch fetch -all ./runtime/local/bin/nutch fetch -all ./runtime/local/bin/nutch updatedb ./runtime/local/bin/nutch solrindex http:/