solr

Solr - How to search in all fields without passing query field?

懵懂的女人 提交于 2019-12-25 16:03:11
问题 I have tried as below, <field name="collector" type="text_general" indexed="true" stored="false" multiValued="true" /> and copy all my fields to copyField as below, <copyField source="fullname" dest="collector"/> <copyField source="email" dest="collector"/> <copyField source="city" dest="collector"/> and also I have put all copyField tags below <fields> </fields> tags. But I cant search in all fields. I have to pass fullname before query like, q=fullname:Mayur I want search by, q=Mayur And I

My solr service doesn't appear to be applying stopwords and synonyms

本小妞迷上赌 提交于 2019-12-25 14:41:50
问题 This is a copy of my "text" fieldtype. When i type in a query, synonyms and stopwords are not being respected. However, the WordDelimiterFilterFactor is working as expected....Is something wrong with my schema? http://pastebin.com/i552PCAE (same code is found here) <fieldType name="text" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true"> <analyzer type="index"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <!-- in this example, we will only use synonyms

Parse json data for <highlighting> tag to highlight a text in a field

五迷三道 提交于 2019-12-25 12:51:13
问题 { "responseHeader": { "status": 0, "QTime": 32 }, "response": { "numFound": 21, "start": 0, "docs": [ { "description": "The matte finish waves on this wedding band contrast with the high polish borders. This sharp and elegant design was finely crafted in Japan.", "UID_PK": "8252", }, { "description": "This elegant ring has an Akoya cultured pearl with a band of bezel-set round diamonds making it perfect for her to wear to work or the night out.", "UID_PK": "8142", }, ] }, "highlighting": {

SOLR index and extract .sh and .sql files

纵饮孤独 提交于 2019-12-25 12:46:10
问题 Recently I have set up an image with SOLR. My goal is to index and extract files on a Windows and Linux server. It is possible for me to index and extract data from multiple file types. This is done by the SOLR CELL request handler. See the post.jar cmd below. j ava -Dauto -Drecursive -jar post.jar Y:\ SimplePostTool version 1.5 Posting files to base url localhost:8983/solr/update.. Entering auto mode. File endings considered are xml,json,csv,pdf,doc,docx,ppt,pp tx,xls,xlsx,odt,odp,ods,ott

How to have Solr autocomplete on whole phrase - solr

我是研究僧i 提交于 2019-12-25 12:44:28
问题 I'm creating suggest like google. for now, when i write "do", solr returns "dog", "doll", it returns only one word on schema field. What i want is if it return whole field like "doggy blah blah", "dog store" etc, that would be nice. here's my schema.xml <field name = "companyDisplayName" type = "text_auto" multiValued="false" indexed = "true" stored = "false" /> and my schema fieldtype configuration: <fieldType name="text_auto" class="solr.TextField" positionIncrementGap="100" ><analyzer type

Solr 5.2.1 Access denied when trying to startup through powershell

我只是一个虾纸丫 提交于 2019-12-25 12:33:11
问题 I have Solr version 5.2.1 normally it starts up fine with no issues, this morning I attempted to start Solr and I got the following issue: Starting Solr on port 8983 from C:\solr-5.2.1\solr-5.2.1\solr-5.2.1\server Access is denied. Access is denied. Direct your Web browser to http://localhost:8983/solr to visit the Solr Admin UI I restarted the computer yet I still get this access denied issue, which I have not encountered before does anyone have the insight into why this is happening? Thanks

Correct use case of String parameter in SetQuery function of SolrQuery?

青春壹個敷衍的年華 提交于 2019-12-25 11:52:55
问题 I have q queryString = "select?wt=json&rows=0&indent=true&facet=true&q=*:*&facet=true&facet.field=outcome_type" If queried like : http://x.x.x.x:8983/solr/abc/queryString it works. here abc is a core. Now I would like to execute it programmatically, and using the following approach : SolrQuery query = new SolrQuery(); query.setQuery(queryString); QueryResponse resp = server.query(query); here queryString as defined above, but it return the following error : Exception in thread "main" org

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:

Solr Customization using Java for modified output?

蹲街弑〆低调 提交于 2019-12-25 10:30:28
问题 I am developing an application uaing Solr. Everything is going fine and I am looking ahead to integrate Solr with CodeIgniter or some other framework for frontend. But there is a problem. I am performing some calculations on output rows thrown by Solr and showing them to users. It is really not feasible to do in PHP ( as it takes really long time). I have an existing code written in Java and hence, I find no reason in porting this application to PHP. How can I do that? Is there anyway I can

Can Solr retain the formatting of the HTML documents whcih was fed to it in its result?

时光毁灭记忆、已成空白 提交于 2019-12-25 09:42:11
问题 How do I maintain the Original formatting of the HTML document in the results given by Solr? I am trying to provide search functionality in one of my companies website that is having millions of documents and all are not having similar formatting, So it is hard to individually format each document. I am using Solr 4.1 nightly builds at apache site which is having inbuilt support for solr-cell and tika. i.e. i need not to separately configure them. does solr-cell or tika retains these