solr

Can't ignore punctuation in titles - Solr 5 and Drupal

左心房为你撑大大i 提交于 2019-12-13 19:14:45
问题 The other week I posted a question about removing punctuation from solr search in Drupal. That was using Solr 4. However, since then the development I am doing has changed from solr 4 to solr 5, and now I am having the same problem but the fix at Can't remove punctuation in Solr no longer works. This causes problems when sorting by titles since a lot of content titles have quotes around. <field name="label" type="text" indexed="true" stored="true" termVectors="true" omitNorms="true"/>

Storing and searching dynamic key value pairs in Solr document

只愿长相守 提交于 2019-12-13 18:32:15
问题 I need to store and index key value pairs attached with a particular Solr document. For eg, there might be a variable number of tags(labels) attached to a solr document with each tag name having an integer along with it as a value for it. <doc> <id>1001</id> #dymanic tags attached php=>10 web=>2 programming=>12 mysql=>10 </doc> So when I search for "php" this document should showup in the search results and I should be able to read its value for that particular document (in case of example

Highlighting issue with quoted queries in Solr - fragment not returned

萝らか妹 提交于 2019-12-13 18:27:29
问题 This is very curious. Highlighting works fine in every other case, but there's this one case it doesn't return any fragments. My document is as follows (fieldType text_en ): Abu Yahya Suhaib bin Sinan (May Allah be pleased with him) reported that: The Messenger of Allah (PBUH) said, "How wonderful is the case of a believer; there is good for him in everything and this applies only to a believer. If prosperity attends him, he expresses gratitude to Allah and that is good for him; and if

plus sign in solr query is not correctly treated

笑着哭i 提交于 2019-12-13 18:24:10
问题 All: I am new to Solr, when I play with solr example with importing some random document, I use a search query in q like: fund+report There is no space between fund and +, and I thought it will search a word "fund+report" in the document, which rarely happen in document, but a lot results return, thequery url is: http://localhost:8983/solr/collection1/select?q=fund%2Breport&fl=id+filename+%5Bexplain%5D&wt=xml&indent=true I thought Solr treat my query just like: fund report or fund OR report

how solr search works with starts with+

僤鯓⒐⒋嵵緔 提交于 2019-12-13 18:09:15
问题 How solr search works with starts with '+' symbol, search phone number with '+32498516 where phone number saved in database like: +32498516141,+32498516345 My Concern here : Start with: +32498516 q=cellPhone%3A%28%28%2B32498516*%29%29&start=0&rows=1048577&fl=firstName,lastName,indexType,userExtKey,resumeId,externalId,shareProfile,candidateId,publicIntranetNR,userId,id,score&fq=indexType%3ACANDIDATE+AND+%28shareProfile%3Atrue+OR+country%3AUS%29 32498516 q=cellPhone%3A%28%2832498516*%29%29

Tomcat as a service v/s Tomcat on console for 64 bit Windows

ぃ、小莉子 提交于 2019-12-13 18:01:47
问题 When I start Tomcat (64 bit) on 64 bit Windows my application (Solr) starts giving Out of Memory Errors. I have allocated min/max heap of 5GB for both to Tomcat using Windows Environment variable CATALINA_OPTS. However when I start tomcat on command line using startup.bat it does not give any such errors and my application is touching 5GB so it is clear that it is taking into consideration the min/max heap committed. Now my question is: Do I need to do any additional stuff while starting

Get Solr Cores via Powershell

女生的网名这么多〃 提交于 2019-12-13 17:16:23
问题 Is there a way to use Powershell to get a list of Solr cores running in my local instance of Solr? I am running Solr 4.10.1, and am using Powershell 2.0. I would like to create a text file of core names: somecore1 somecore2 etc. I was able to get a list of my cores in XML format by hitting this URL: http://localhost:8983/solr/admin/cores The pertinent details of the return XML are: <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">2663</int> </lst> <str name=

Can't find resource 'solrconfig.xml' in classpath in solr

我们两清 提交于 2019-12-13 14:00:30
问题 problem i cannot access solr admin page. when i run url on localsystem: http://localhost:8983/solr/admin/cores?action=CREATE&name=new_core&configSet=basic_configs response <response> <lst name="responseHeader"> <int name="status">400</int> <int name="QTime">17</int> </lst> <lst name="error"> <str name="msg"> Error CREATEing SolrCore 'new_core': Unable to create core: new_core Caused by: Can't find resource 'solrconfig.xml' in classpath or '/var/lib/tomcat7/solr/new_core/conf' </str> <int name

Solr: where to find the Luke request handler

﹥>﹥吖頭↗ 提交于 2019-12-13 13:58:36
问题 I'm trying to get a list of all the fields, both static and dynamic, in my Solr index. Another SO answer suggested using the Luke Request Handler for this. It suggests finding the handler at this url: http://solr:8983/solr/admin/luke?numTerms=0 When I try this url on my server, however, I get a 404 error. The admin page for my core is here http://solr:8983/solr/#/mycore , so I also tried http://solr:8983/solr/#/mycore/admin/luke . This also gave me another 404. Does anyone know what I'm doing

Indexing nested documents in Solr

孤者浪人 提交于 2019-12-13 12:40:15
问题 I've seen that Solr will allow you to index JSON: http://wiki.apache.org/solr/UpdateJSON However, none of the examples are nested. Can you index something like this and if not how is it normally handled? { name: 'ben', state: 'california', country: 'united states', companies: [ { name: 'google', title: 'software engineer', }, { name: 'sherwin-williams', title: 'web developer' } ], } 回答1: There are a couple ways to go. A json string can be stored explicitly, with serialization handled in the