solr

Updating Solr Index when product data has changed

牧云@^-^@ 提交于 2019-12-24 06:40:13
问题 We are working on implementing Solr on e-commerce site. The site is continuously updated with a new data, either by updates made in existing product information or add new product altogether. We are using it on asp.net mvc3 application with solrnet. We are facing issue with indexing. We are currently doing commit using following: private static ISolrOperations<ProductSolr> solrWorker; public void ProductIndex() { //Check connection instance invoked or not if (solrWorker == null) { Startup

Solr and Zookeeper Configuration

筅森魡賤 提交于 2019-12-24 06:35:55
问题 In Production environment, should Solr be setup on every server possible including the one having Zookeeper? Talking about External Zookeeper Total Servers : 5 Case 1: Solr on all 5 servers. Zookeeper on 3 servers. Case 2: Solr on 2 servers. Zookeeper on 3 servers. Case 3: Solr on 5 servers. Zookeeper on 5 servers. What is the best practice? What are the advantages of using one case over another? I have read that it's better to have Zookeeper in a separate server. 回答1: At any point of time

Solr WebAdmin error 500

我的梦境 提交于 2019-12-24 06:30:21
问题 it been days that I am trying to find a solution to start Solr 5.2.1 properly, but I always get this error : HTTP ERROR 500 Problem accessing /solr/. Reason: Server Error Caused by: java.lang.NullPointerException at org.apache.solr.servlet.SolrDispatchFilter.authenticateRequest(SolrDispatchFilter.java:254) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:203) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:196) at org.eclipse.jetty

trouble in solr connect java

有些话、适合烂在心里 提交于 2019-12-24 06:29:14
问题 I try to use solr 6.5.0 to connect java . I have added following .jar files to the library: commons-io-2.5 httpclient-4.4.1 httpcore-4.4.1 httpmine-4.4.1 jcl-over-slf4j-1.7.7 noggit-0.6 slf4j-api-1.7.7 stax2-api-3.1.4 woodstox-core-asl-4.4.1 zookeeper-3.4.6 solr-solrj-6.5.0 but when i try use following code to connect the solr: import org.apache.http.impl.bootstrap.HttpServer; import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.SolrServerException; import org

How to autocomplete across multiple fields in Solr

只愿长相守 提交于 2019-12-24 06:27:36
问题 I am trying to implement auto-complete feature for search using Solr's suggester component. I want to give suggestions across multiple fields. I have 2 fields taxonomy and tag which I want to provide in suggestions. Eg if the search query is neck then it should return: necklace neckalce sets pearl necklace diamond necklace pearl necklace sets diamond necklace sets where necklace is a taxonomy and pearl and diamond are tags. Following is my schema.xml: <field name="suggestion" type="text_auto"

Getting 'The procedure enrty point php_var_unserialized_init could not be located'

半世苍凉 提交于 2019-12-24 05:55:23
问题 I am working on setting Solr for Windows for Moodle 3.1 . My php info looks like PHP 7.0.21 (cli) (built: Jul 5 2017 13:31:19) ( ZTS ) , and I am running Windows 10, 64 bit. I have downloaded '7.0 Thread Safe (TS) x86' from https://pecl.php.net/package/solr/2.4.0/windows. I have added ' extension=php_solr.dll ' to my php.ini @path C:\xampp\php:php.ini. When I place php_solr.dll from '7.0 Thread Safe (TS) x64' to 'C:\xampp\php\ext', I am getting 来源: https://stackoverflow.com/questions/46293888

Solr, search only by time among datetime fields?

a 夏天 提交于 2019-12-24 05:53:33
问题 I have a result list: { entry: 'name1', at: '2013-04-01 13:44:02' }, { entry: 'name2', at: '2013-11-11 23:34:11' }, { entry: 'name3', at: '2013-05-09 03:58:32' }, now I would want to write a search filter condition that results hits in '12:00:00' and '14:00:00', so filtering in times, not dates, ignoring the date itself. Something like: at:[*T12:00:00Z TO *T14:00:00Z] 回答1: then you need to put the time only information in another field, say a tint, making the time a single integer, 12:44:32

Multi-select Solr filtering and faceting

跟風遠走 提交于 2019-12-24 05:48:48
问题 I'm trying to implement facets for my Solr service, but I'm a bit confused as to what I'm seeing. I understand that Tags and Exclusions are used to ignore specific filter counts, such that something like this would happen: [] Nike 55 [] Adidas 54 [] New Balance 32 [] Black 25 [] Blue 26 [] Red 29 [] Yellow 23 --------------- [X] Nike 55 [] Adidas 54 [] New Balance 32 [] Black 20 [] Blue 15 [] Red 13 [] Yellow 13 [X] Nike 20 [] Adidas 0 [] New Balance 0 [X] Black 20 [] Blue 15 [] Red 13 []

How to make Solr's spell checker ignore case?

喜夏-厌秋 提交于 2019-12-24 05:36:42
问题 How do you ask the example spellchecker to ignore case ? I am using all defaults shown in the demo. Now I see that if I type Ancient , it asks "did you mean ancient ? " What do I do ? ps : I don't have anything that has the word "spell" in my schema.xml!!!! How is it working ? 回答1: The schema should have a field type called "spell" that is used for spell checking. This will lowercase all words used by the spellchecker so you don't have to worry about case. Here is an example of how to use

Lowercase filter factory doesn't work when docvalues=true

橙三吉。 提交于 2019-12-24 05:14:25
问题 I am trying to achieve case insensitive sorting using Solr and faced this issue. [Copied] ....But When I get search result its not sorted case insensitive. It gives all camel case result first and then all lower case If I m having short names Banu Ajay anil sudhir Nilesh It sorts like Ajay, Banu, Nilesh, anil, sudhir ................... I followed the solution and made the following changes in my solr schema.xml file (only relevent field and field type is shown): <?xml version="1.0" encoding=