solr

WordCount example - option.builder() error (intelliJ, Solr, Spark)

穿精又带淫゛_ 提交于 2019-12-24 14:33:40
问题 I started to learn Solr and I am trying to write a WordCount-example with Solr and Spark. But I have problem, perhaps with the imports or with the dependencies. You can look at my code below.. My dependencies: <groupId>com.lucidworks.spark</groupId> <artifactId>spark-solr</artifactId> <version>2.1.0</version> <groupId>org.apache.solr</groupId> <artifactId>solr-solrj</artifactId> <version>7.6.0</version> My Code: object Solr extends SparkApp.RDDProcessor { def getName: String = "query-solr

Hue, Solr - Auto Fill of Search Terms

亡梦爱人 提交于 2019-12-24 14:30:38
问题 In the HUE Solr UI, there is an option to create a Dashboard to Search on an index. The search Field allows auto fill of the Index fieldsNames (as per the below HTML Snippet), but not autofill of Search Terms from the Index of the existing terms. HTML Code for the Search Box - <input data-bind="clearable: q, typeahead: { target: q, source: $root.collection.template.fieldsNames, multipleValues: true, multipleValuesSeparator: ':', extraKeywords: 'AND OR TO', completeSolrRanges: true } Is there

solr grouping based on all index values

不问归期 提交于 2019-12-24 14:18:54
问题 When I group or facet in solr based on a field, I only receive a count of documents that are in the search results. Is there a way to get a count of the documents that contain that value across the entire index? For example, with this data, I would like to search for "something" and get back only one item per unique gs field with a count of all the fields in the index. So id 2 would come up, as grouped by gs 50005, but the count would be 2 instead of 1. <doc> <field name="id">1</field> <field

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

SolrJ used to control Solr/Luce vs. Straight Rest Calls

给你一囗甜甜゛ 提交于 2019-12-24 14:04:09
问题 We are running a TomCat servlet (Railo) for a public facing REST application. I've started implementing SolrJ to control a standalone Solr cluster. Queries are working well, but I'm scratching my head over the flow vs. just using the straight HTTP interface Solr provides. I thought there was some performance benefit to using SolrJ which is why I started implementing it, but from what I'm reading and seeing in response times, I think I was wrong on that account (?). Is there any real advantage

Solr negative boost

时光怂恿深爱的人放手 提交于 2019-12-24 13:55:04
问题 I'm looking into the possibility of de-boosting a set of documents during query time. In my application, when I search for e.g. "preferences", I want to de-boost content tagged with ContentGroup:"Developer" or in other words, push those content back in the order. Here's the catch. I've the following weights on query fields and boost query on source qf=text^6 title^15 IndexTerm^8 As you can see, title has a higher weight. Now, a bunch of content tagged with ContentGroup:"Developer" consists of

Solr 4.0.0 define <uniqueKey> id</uniqueKey> as a “long” type throws an error on startup

三世轮回 提交于 2019-12-24 12:49:00
问题 In my entity clas, I defined id: @Field("id") protected Long id; then in solr4.0.0 schema.xml, i define: <field name="id" type="long" indexed="true" stored="true" /> <uniqueKey>id</uniqueKey> then solr throws exception on startup. If 'id' is defined as 'string' type, no exception. so my question is: what's the solution if i insisted on defining 'id' as long type. 回答1: Check SOLR-2997 It seems QueryElevationComponent needs the Unique key in String format. So if you don't need it you can remove

Solr search with Mysql Database, any utility for data importing

核能气质少年 提交于 2019-12-24 12:39:29
问题 We are looking at ways of improving "search" functionality in our large business application which currently uses SQL Like syntax to do it. So we started evaluating Solr server and were able to index few of our database tables and search. But I am newbie and wanted to know if 1) We have large number of tables in our application. Is there any utility that generates schema xml in solr using the database tables? 2) Our current search lists the database row that meets the search criteria (this

How can I display results for a Rails SOLR multimodal search?

人盡茶涼 提交于 2019-12-24 12:08:43
问题 In my rails controller i write @all = Sunspot.search(Car, Article, Organization) do fulltext params[:search] end @all_res = @all.results and then i have this data: [#<Car id: 25, vehicle_manufacturer_id: 2, vehicle_model_id: 2, price: 0, year: 1900, eng_capacity: 1, fuel_type_id: 2, gearbox_id: 2, wheeldrive_id: 2, is_not_rus: false, color_id: 3, vehicle_registration_id: 2, condition_id: 1, body_type_id: 3, is_exchangeable: false, is_not_sell: nil, is_right_wheel: false, is_without_run_in

Solr / rdbms, where to store additonal data

北慕城南 提交于 2019-12-24 11:51:43
问题 What would be considered best practice when you need additional data about facet results. ie. i need a friendlyname / image / meta keywords / description / and more.. for product categories. (when faceting on categories) include it in the document? (can lead to looots of duplication) introduce category as a new index in solr (or fake by doctype=category field in solr) use a rdbms to lookup additional data using a SELECT WHERE IN (..category facet result ids..) Thanks, Remco 回答1: I would think