solr

Searching books in Apache Solr

大兔子大兔子 提交于 2019-12-23 05:19:50
问题 I'm very new to Solr and I'm evaluating it. My task is to look for words within a corpus of books and return them within a small context . So far, I'm storing the books in a database split by paragraphs (slicing the books by line breaks), I do a fulltext search and return the row. In Solr, would I have to do the same, or can I add the whole book (in .txt format) and, whenever a match is found, return something like the match plus 100 words before and 100 words after or something like that?

Split a Solr index 1.4

最后都变了- 提交于 2019-12-23 04:54:10
问题 I have a Solr index 1.4 whose size is more than 20 GB. I would like to split it in 2 or 3 indexes. Lucene 3.3 has the function PKIndexSplitter but it is not working with a Solr 1.4 index. Is it possible to split a Solr index 1.4 ? Thanks for help Medley 回答1: No there is no "method" in Solr 1.4 to do that. What you need to do is make two copies of the index. In each copy, delete records. Then optimize. Then you can do a DistributedSearch over both indexes. Hope it helps. 回答2: I wrote a command

Spring Data Solr with Solr 4.1 multicores

送分小仙女□ 提交于 2019-12-23 04:29:06
问题 Trying to implement Spring-Data-Solr with Solr 4.1 multicores, At server startup getting following exception, I guess it expecting a default constructor somewhere. So, is there a limitation of spring-data-solr with solr muticores implementation, here is my implementation, repositories public interface MembershipDocumentRepository extends CustomMembershipDocumentRepository, SolrCrudRepository<MembershipDocument, String> { } created 'repository' manually instead of autowiring/injection.......

EdgeNGramFilterFactory not working (not indexing?)

孤街醉人 提交于 2019-12-23 04:03:29
问题 I am having trouble getting ngrams to work. Here's my schema.xml: <fieldType name="text" class="solr.TextField" omitNorms="false"> <analyzer type="index"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.StandardFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.EdgeNGramFilterFactory" minGramSize="1" maxGramSize="25" /> </analyzer> <analyzer type="query"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr

Multiple bindings of SLF4J

匆匆过客 提交于 2019-12-23 03:27:28
问题 I have the following error in spring boot application: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/tomcat/webapps/ROOT/WEB-INF/lib/slf4j-simple-1.7.13.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/opt/tomcat/webapps/ROOT/WEB-INF/lib/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. I went to the link and tried to

Solr authentication (using Django Haystack)

主宰稳场 提交于 2019-12-23 03:24:10
问题 My solr service works without HTTP authentication, but my webhost provides it and I'd like to take advantage of it. I've been given a username and password to access my solr service by dotcloud in the form of a url: 'http://dotcloud:XXXXXXXXXXXXXXXXXXXX@gigsmash-teamfoobar.dotcloud.com/solr/' When I point my browser to this address, it works just fine. In my settings.py file I have the following line: HAYSTACK_SOLR_URL = 'http://dotcloud:XXXXXXXXXXXXXXXXXXX@gigsmash-teamfoobar.dotcloud.com

Using Spring Solr Data or Not for Flexible Requests as Like Backup?

杀马特。学长 韩版系。学妹 提交于 2019-12-23 03:17:13
问题 I want to implement an application at Spring that interacts with my current Solr or SolrCloud. I consider of using Spring Data Solr or not. However I think that there is no CloudSolrServer implemented at it yet on the other hand if I just run a query like that: http://localhost:8983/solr/replication?command=backup and check whether backup is completed or not(I will do a get request, parse JSON and will see that last backup time is changed or not) How I can integrate it with Spring Data Solr?

Solr cursor marker and pagination

青春壹個敷衍的年華 提交于 2019-12-23 03:04:41
问题 I want to use Solr for my website as a search engine and I am trying to understand the difference between basic paging and deep paging with cursor marker. As far as I understand, if you use the basic pagination and query the page 1001 with 20 results per page this will happen: Solr will find the first 1000*20 matching results display the next 20 results for 1001 page I guess the problem is when someone clicks next page. Solr will find first the 1001*20 results and after that will show the

In solr, I want to know id “587” is in what position?

泄露秘密 提交于 2019-12-23 02:54:13
问题 Solr, I have document data, with uniqueKey field "id" in schema.xml I just want to know what position id "587" is in document in all documents with sort, return i ; Can someone know what I mean? Can someone help me? 2012-6-4 11:26 update data example:search result [5,8,1,9,12,6,7,........] ids form solr document How to know id=9 index/position in the result? 来源: https://stackoverflow.com/questions/10844118/in-solr-i-want-to-know-id-587-is-in-what-position

In solr, I want to know id “587” is in what position?

你说的曾经没有我的故事 提交于 2019-12-23 02:54:06
问题 Solr, I have document data, with uniqueKey field "id" in schema.xml I just want to know what position id "587" is in document in all documents with sort, return i ; Can someone know what I mean? Can someone help me? 2012-6-4 11:26 update data example:search result [5,8,1,9,12,6,7,........] ids form solr document How to know id=9 index/position in the result? 来源: https://stackoverflow.com/questions/10844118/in-solr-i-want-to-know-id-587-is-in-what-position