solr

Solr search query returning full head exception

一笑奈何 提交于 2020-01-02 05:45:08
问题 I am calling remote solr search hosted on other machine in a c# application. Now since my query length becomes too large so search engine is returning full head error. I can't reducing query length. so i just wanted to know can i make a post request for the same? how would i make this?Please suggest me.Thanks. 回答1: Looks like you are running into jetty's default GET parameter size limit. This can be adjusted by changing headerBufferSize in jetty.xml. Refer to this link on configuring jetty -

Solr range query for specefic id like /solr/select?q=x:[1,2,5,11,64589]

本小妞迷上赌 提交于 2020-01-02 04:28:10
问题 I have some specific id like 1,2,5,11,64589 in solr (int type) I want to qet query like ttp://localhost:8983/solr/select?q=x:[1,2,5,11,64589] but does not work (get error). how can do it ??? Note: i can implement with " OR " but i want simple way (and other problem limit in max url char length) 回答1: These are your options: ?q=x:(1 OR 2 OR 5 OR ...) ?q=x:1 OR x:2 OR x:5 OR ... ?q=x:(1 2 5 ...) with defaultOperator="OR" (haven't tried this one but it should work) Write your own RequestHandler

How to backup a Solr database?

倾然丶 夕夏残阳落幕 提交于 2020-01-02 02:01:08
问题 I wonder how to backup (dump) a Solr database? If it is only to copy some files, then please specify which files (filename, location etc). Thanks 回答1: Typically, the index is stored in $SOLR_HOME/data . Back up that entire folder. 回答2: We use Solr Replication to do our backup. You can either have a slave that is dedicated to be a backup or use the "backup" command to make a backup on the master (I never used that last method). 来源: https://stackoverflow.com/questions/3505979/how-to-backup-a

solr JOIN query

感情迁移 提交于 2020-01-01 19:42:34
问题 I need to run a JOIN query on a solr index. I've got two xmls that I have indexed, person.xml and subject.xml. Person: <doc> <field name="id">P39126</field> <field name="family">Smith</field> <field name="given">John</field> <field name="subject">S1276</field> <field name="subject">S1312</field> </doc> Subject: <doc> <field name="id">S1276</field> <field name="topic">Abnormalities, Human</field> </doc> I need to only display information from the person doc but each query should match fields

Boost result by specified search term on top

旧时模样 提交于 2020-01-01 19:20:32
问题 I'm using apache solr 3.1 with drupal How can boost result on top which is specified in search field? Example in search field, if user enters continuing , solr shows the document which have Continuity on top and the one with continuing below, i want to show the one with continuing above than the Continuity http://localhost:8983/solr/select/?q=continuing&qf=title&fl=title%20score&bq=title:continuing^10.0 回答1: It seems you have stemmer in the filter chains, due to which continuing and

SolrException: Error loading class 'solr.RunExecutableListener' + '/var/tmp/sustes' process

风流意气都作罢 提交于 2020-01-01 18:57:58
问题 Prehistory: My friend's site started to work slowly. This site uses docker . htop told me that all cores loaded on 100% by the process /var/tmp/sustes with the user 8983 . Tried to find out what is sustes , but Google did not help, but 8983 tells that the problem in Solr container. Tried to update Solr from v6.? to 7.4 and got the message: o.a.s.c.SolrCore Error while closing ... Caused by: org.apache.solr.common.SolrException: Error loading class 'solr.RunExecutableListener' Rolled back to

Faceted searching and categories in MySQL and Solr

一笑奈何 提交于 2020-01-01 18:53:25
问题 I'd like to be able to do a search page similar to ebay or newegg where you can select categories and different facets depending on the categories - could anybody point me in the right direction? How do I store and search such facets and categories with the products in Solr and what sort of DB schema would I be looking at with MySQL. (I'm guessing I'd use MySQL to feed Solr, yes?) Please excuse my lack of knowledge on these subjects - I'm pretty new to all of this. I'd greatly appreciate the

In what condition i can use solr core

ぃ、小莉子 提交于 2020-01-01 17:10:31
问题 I am using solr version 3.0.1, and I am about to change to solr 4.6.0. Usually I just use solr without defining core (I think solr 3.0.1 doesn't have core yet). And now I want to upgrade my solr to version 4.6.0, there is something new on it. So i have 3 questions: What exactly solr core is? When i should use solr core? Is it right that each solr core is like a table in a (relational) database? That is, can I save different type of data in different core? Thanks in advance. 回答1: A core is

Performing EXACT match on SOLR search

人走茶凉 提交于 2020-01-01 09:42:24
问题 I am implementing a SOLR search. When I type in e.g Richard Chase I get all the Richards in the index and all the Chases, like Johnny Chase etc.. when actually I only want to return all the names that match BOTH Richard AND Chase. my config settings are <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"

Solr 4.4: StopFilterFactory and enablePositionIncrements

半世苍凉 提交于 2020-01-01 09:23:58
问题 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