solr

how to add new Fields into solr schema

孤街浪徒 提交于 2019-12-25 06:23:08
问题 I am doing data import from Mongo to Solr. For this I need to add new fields into the Solr schema. I am using solr server 5.1.0. Schema.xml is not available in solrhome/server/solr/core/config directory so I copied one from solr-5.1.0\server\solr\configsets\basic_configs\conf to core\config and added fields into this. Now when we start Solr server I get WARN message that I should remove the schema.xml file as this is now managed-schema. These fields should be moved to managed-schema file, but

Example of File System Search using apache solr 4.0

百般思念 提交于 2019-12-25 06:04:25
问题 Hi My Requirement is that: I have to create an web application where a search text and button will be there and when I enter some text to search it should search into my local file system on windows like: C:/ drive and lists and display these files that contains the matched text. It is like windows 8 file system search. Can anybody help me on these??? I new to Solr. I configured apache-solr-4.0.0 with Tomcat7 and JDK 7. Please Help with some example. You can send me any sample application on

Example of File System Search using apache solr 4.0

喜欢而已 提交于 2019-12-25 06:03:19
问题 Hi My Requirement is that: I have to create an web application where a search text and button will be there and when I enter some text to search it should search into my local file system on windows like: C:/ drive and lists and display these files that contains the matched text. It is like windows 8 file system search. Can anybody help me on these??? I new to Solr. I configured apache-solr-4.0.0 with Tomcat7 and JDK 7. Please Help with some example. You can send me any sample application on

API to Import Data in to Apache SOLR from LDAP

只愿长相守 提交于 2019-12-25 05:59:11
问题 We would like to use Apache SOLR to search users. For that we want to map the users from LDAP to SOLR. We just want to search users, we don't want any authentication as we do authentication even before it hits SOLR. I couldn't find any API to do that. I guess I could get records from LDAP and SOLR rest API to push the data. I don't want to reinvent the wheel if there is already tool out there to help. any help would be appreciated Many thanks in advance. 来源: https://stackoverflow.com

API to Import Data in to Apache SOLR from LDAP

╄→гoц情女王★ 提交于 2019-12-25 05:59:04
问题 We would like to use Apache SOLR to search users. For that we want to map the users from LDAP to SOLR. We just want to search users, we don't want any authentication as we do authentication even before it hits SOLR. I couldn't find any API to do that. I guess I could get records from LDAP and SOLR rest API to push the data. I don't want to reinvent the wheel if there is already tool out there to help. any help would be appreciated Many thanks in advance. 来源: https://stackoverflow.com

Parsing Solr Results - javabin format

雨燕双飞 提交于 2019-12-25 05:34:07
问题 I am trying to integrate solr with java using solrj. The result retrieved are of the format { numFound=3, start=0, docs=[ SolrDocument{ id=IW-02, name=iPod&iPodMiniUSB2.0Cable, manu=Belkin, manu_id_s=belkin, cat=[ electronics, connector ], features=[ carpoweradapterforiPod, white ], weight=2.0, price=11.5, price_c=11.50, USD, popularity=1, inStock=false, store=37.7752, -122.4232, manufacturedate_dt=TueFeb1418: 55: 59EST2006, _version_=1452625905160552448 } Now this is the javabin format. How

Parsing Solr Results - javabin format

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 05:34:05
问题 I am trying to integrate solr with java using solrj. The result retrieved are of the format { numFound=3, start=0, docs=[ SolrDocument{ id=IW-02, name=iPod&iPodMiniUSB2.0Cable, manu=Belkin, manu_id_s=belkin, cat=[ electronics, connector ], features=[ carpoweradapterforiPod, white ], weight=2.0, price=11.5, price_c=11.50, USD, popularity=1, inStock=false, store=37.7752, -122.4232, manufacturedate_dt=TueFeb1418: 55: 59EST2006, _version_=1452625905160552448 } Now this is the javabin format. How

Solr - Boosting result if query is found in a special field

删除回忆录丶 提交于 2019-12-25 05:14:58
问题 I am wondering if it is possible with Solr 3.4 to boost a search result, if the query is found in a special field without using the "fieldname:query"-syntax. Let me explain: I have several fields in my index. One of it is named "abbreviation" and is filled with text like AVZ, JSP, DECT, ... To be able to find results when searching purely for "AVZ" I added a <copyField source="abbreviation" dest="text"/> in my schema.xml. The field text is my defaultSearchField. This is not the best solution

Documents with the different attributes sets in Sphinx and Solr

给你一囗甜甜゛ 提交于 2019-12-25 04:58:13
问题 Is this is are possible to have indexed documents with the different set of the attributes. For example: There is some amount of the documents with the attr1,attr2, attr3 and soe amount of the documents with the attr4, attr5, attr6 ? Can all of this documents be included in the one index without predefining all possible attributes from both types ? 回答1: yes, you can use dynamic fields is Solr for this purpose. 回答2: With Sphinx you may use json fields (sql_attr_json) where you will save your

Solr - Get the sum of all “filemetadata.filesize” field for a given user

妖精的绣舞 提交于 2019-12-25 04:57:13
问题 I'm building some kind of file storage software. The files metadata are indexed with fields like filesize and userId The What I'd like to do is to be able to compute the space used by an user. For exemple if I have documents: documentId = 1 | userId = 1 | fileSize = 10 documentId = 2 | userId = 2 | fileSize = 5 documentId = 3 | userId = 1 | fileSize = 3 I'd like to run a query so that for userId=1 I retrieve a result being 13MB (10+3) I have seen that we can run FunctionQuery but it doesn't