solrnet

Get all the results from solr without 10 as limit

二次信任 提交于 2019-12-05 06:11:22
How to get all the rows returned from the solr instead of getting only 10 rows? You can define how many rows you want (see Pagination in SolrNet ), but you can't get all documents. Solr is not a database. It doesn't make much sense to get all documents in Solr, if you feel you need it you might be using the wrong tool for the job. This is also explained in detail in the Solr FAQ . As per Solr Wiki, About the row that query returns, The default value is "10", which is used if the parameter is not specified. If you want to tell Solr to return all possible results from the query without an upper

Solr search results and retrieving position of document

痴心易碎 提交于 2019-12-05 04:39:52
问题 I have a solr index accessed using SolrNet, and I would like to retrieve the index (position) of a particular document in the results, without returning the whole result set. In more detail... the query returns ~30,000 documents and is ordered by an integer field. The unique key field contains a Guid, and I would like to find where in the results a particular document is, based on the unique key, while only returning the first 10 results. This index was originally implemented in plain old

Implementing Solr with .net web application

时光毁灭记忆、已成空白 提交于 2019-12-04 13:57:42
问题 I'm about to implement Solr for search on NopCommerce based cart application. I would like to have an idea on the steps as how should I proceed with this. I have looked google for some help, but it didn't really helped. I found that there is an interface for .net for integrating this with .net applications, but not found any doc or tutorial on solr site. I need your help in deciding the best approach to address this problem. 回答1: There is a Solr Tutorial on the Solr Site. And as far as

Solr: How to search multiple fields

落爺英雄遲暮 提交于 2019-12-04 13:10:54
I am using solrnet. I have a title and Description fields. I need to search both fields simultaneously. How do I do this? Jayendra's answer is correct, but if you want to do this without aggregating data in a single field at index-time (copyFields) and want to do it at query-time instead using the standard handler instead of dismax, in SolrNet you can do: var query = Query.Field("title").Is(mytitle) || Query.Field("Description").Is(mydescription); var results = solr.Query(query); See query operators and DSL for more information. If you are using a standard request handler - Create a new field

what is the best practice to implement SOLR in Ecom applications?

时光怂恿深爱的人放手 提交于 2019-12-04 12:30:19
I am new user to SOLR. I am working on an E-commerce web application which have SQL database. I want to implement SOLR for my "category page" in application where we will show products of that category with specific information like available stock , price and few more details. Also we want to restrict product display on basis of stock availability, if there is no stock then we wont display those products. I am trying to implement SOLR with Delta import queries to make my category pages faster. And my concern is about performance of page while getting data from SOLR and accuracy of real time

How to add Spatial Solr to a Solrnet query

时间秒杀一切 提交于 2019-12-04 07:23:21
I am running Solr on my windows machine using jetty. I have downloaded the Spatial Solr Plugin which I finally managed to get up and running. I am also using Solrnet to query against Solr from my asp.net mvc project. Now, adding data into my index seems to work fine and the SpatialTierUpdateProcessorFactory does work as well. The problem is: How do I add the spatial query to my normal query using the Solrnet library. I have tried adding it using the "ExtraParams" parameter but that didn't work very well. Here is an example of me trying to combine the spatial query with a data range query. The

Solr Query with LIKE Clause

时光总嘲笑我的痴心妄想 提交于 2019-12-04 04:49:28
I'm working with Solr and I'd like to know if it is possible to have a LIKE clause in the query. For example, I want to know all organizations with "New York" in the title. In SQL, this would be written like Name LIKE 'New York%'. My question - how do you write a LIKE query in Solr? I'm using the SolrNet library, if that makes a difference. You just search for "New York", but first you need to properly configure your field's analyzer. For example you might want to start with a field type like text_general as defined in the default Solr schema . This field type will tokenize on whitespace and

How to boost fields in solr

会有一股神秘感。 提交于 2019-12-04 04:14:14
I already have the boost determined before hand. I have a field in the solr index called boost1 . This boost field will have a value from 1 to 10 similar to google PR rank. This is the boost that should be applied to every query ran in solr. here are the fields in my index Id Title Text Boost1 The boost field should be apply to every query. I am trying to implement functionality similar to Google PR rank. Is there a way to do this using solr? Jayendra you can add the boost during query e.g. q={!boost b=boost1} How_can_I_boost_the_score_of_newer_documents However, this may need to be added

Set Custom Order for Facets coming from Solr

孤人 提交于 2019-12-04 03:36:24
问题 I'm using Solr for offering faceted navigation for e-commerce site. However I need to define the custom order for facets, but I didn't find how to do that in Solr. Any idea how to do this? I'm using Solr Net and latest version of Solr. Here is an example what I need to do. Current Facets Operating System Android (32) Blackberry OS (8) Windows (6) Apple iOS (6) Bada (5) Proprietary (2) Price 10001 - 20000 (42) 20001 - 25000 (12) 500 - 5000 (11) 5001 - 10000 (8) Note that it is just an example.

Issue about Schema.xml uniqueKey field [duplicate]

ぃ、小莉子 提交于 2019-12-03 22:58:23
This question already has answers here : Closed 7 years ago . Possible Duplicate: Solr: QueryElevationComponent requires StrField uniqueKeyField error I hava configured the schema.xml with different field like <fields> <field name="id" type="int" indexed="true" stored="true" required="true" /> </fields> <uniqueKey>id</uniqueKey> when I run solr service it gives me the error like uniquekey field must be string then after I change the field type int to string it's working fine <fields> <field name="id" type="string" indexed="true" stored="true" required="true" /> </fields> <uniqueKey>id<