solr4

Solr 4.4: StopFilterFactory and enablePositionIncrements

百般思念 提交于 2020-01-01 09:23:09
问题 While attempting to upgrade from Solr 4.3.0 to Solr 4.4.0 I ran into this exception: java.lang.IllegalArgumentException: enablePositionIncrements=false is not supported anymore as of Lucene 4.4 as it can create broken token streams which led me to this issue. I need to be able to match queries irrespective of intervening stopwords (which used to work with enablePositionIncrements="true"). For instance: "foo of the bar" would find documents matching "foo bar", "foo of bar", and "foo of the bar

Configuring Solr to use UUID as a key

懵懂的女人 提交于 2019-12-29 09:04:03
问题 I am trying to configure Solr 4 to work with UUID and so far I am unsuccessful From reading the documentation I have seen two different ways to configure schema.xml to work with UUID (both do not work) for both I need to write <fieldType name="uuid" class="solr.UUIDField" indexed="true" /> option 1: add: <field name="id" type="uuid" indexed="true" stored="true" default="NEW" multiValued="false"/> and make sure to remove the line <uniqueKey>id</uniqueKey> option 2 add: <field name="id" type=

Configuring Solr to use UUID as a key

自闭症网瘾萝莉.ら 提交于 2019-12-29 09:02:32
问题 I am trying to configure Solr 4 to work with UUID and so far I am unsuccessful From reading the documentation I have seen two different ways to configure schema.xml to work with UUID (both do not work) for both I need to write <fieldType name="uuid" class="solr.UUIDField" indexed="true" /> option 1: add: <field name="id" type="uuid" indexed="true" stored="true" default="NEW" multiValued="false"/> and make sure to remove the line <uniqueKey>id</uniqueKey> option 2 add: <field name="id" type=

Stronger boosting by date in Solr

我的梦境 提交于 2019-12-29 03:21:41
问题 Boosting by date field in solr is defined as: {!boost b=recip(ms(NOW,datefield),3.16e-11,1,1)} I looked everywhere (examples: Solr Dismax Config for Boost Scoring and Solr boost for multivalued date field and they all reference the SolrRelevancyFAQ), same definition that is used. But I found that this is not boosting my results sufficiently. How can I make this date boosting stronger? User is searching for two keywords. Both items contain both keywords (in same order) in both title and

Export from solr: Unknown query parser 'xport'

╄→гoц情女王★ 提交于 2019-12-25 11:50:19
问题 I tried following this tutorial to export solr result set, but upon accessing the export url http://localhost:8983/solr/emails/export?q=*%3A*&sort=date+desc&fl=id I received the following error: <response> <lst name="responseHeader"> <int name="status">400</int> <int name="QTime">17</int> </lst> <lst name="error"> <str name="msg">Unknown query parser 'xport'</str> <int name="code">400</int> </lst> </response> It seems for some reason that xport query parser isn't there. Here's my system info:

How much time does the cursorMark is available on solr server

好久不见. 提交于 2019-12-24 14:12:58
问题 Using cursorMark we can overcome deep paging; so far so good. I have a question If that is the case then for how much time is this mark live on the server. If there are different unique requests for cursorMark=* then it might take all the server RAM right? Is there any way we can destroy the mark if it is no longer used. 回答1: CursorMark does not require server state. It's just a value referring to some internal information. So, there should be no memory impact from using it with multiple

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=

Upgrade Apache Solr from 4.10.4 to 6.6.0 on Cent os 7

折月煮酒 提交于 2019-12-23 19:04:33
问题 How to upgrade Apache solr from existing version 4.10.4 to 6.6.0 (A latest one) On linux centos 7 operating system. 回答1: stop existing running solr sudo service solr stop confirm its stopped or not sudo service solr status You can take backup of existing solr data from /var/solr/data/< core_name >, But reindexing solr data after upgrading solr version will give best performance without any unknown issues. now remove existing solr from centos sudo rm -r /var/solr remove solr from following

Solr: Can't search for numbers mixed with characters

亡梦爱人 提交于 2019-12-23 11:59:34
问题 I have some items in my index (Solr. 4.4), which contain names like Foobar 135g , where the 135g refers to some weights. Searching for foobar or foobar 135 does work, but when I try to search for the exact phrase foobar 135g , nothing is found. I analysed the query inside the solr admin panel "Analysis". Here everything looks good. The fields are indexed correctly, the query is splitted correctly, and I get hits (indicated by this purple background on the tokens). But there has to be an issue

Apache tomcat server is stopped after several commit of documents in Solr 4.4

谁都会走 提交于 2019-12-23 02:49:26
问题 We have successfully installed Solr 4.4. We have done setup in windows 7. With the tomcat 8.0, Java jre 7 and Solr 4.4. We have done commit for some documents. But unfortunately after some commit of document our Apache tomcat server is stopped. And at time we get the following error in application. System.IO.IOException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing