logo
down
shadow

Sunspot solr search with negative value


Sunspot solr search with negative value

Content Index :

Sunspot solr search with negative value
Tag : solr , By : Vasiliy
Date : December 01 2020, 05:00 PM

I hope this helps you . Either solr configuration has to be changed to not consider "-" as special character or the search term needs to be changed and passed on to Sunspot.

Comments
No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

RESTful implementation of sitewide (multiple models) search with Sunspot Solr Search through a SearchController. Is that


Tag : ruby-on-rails , By : Mare Astra
Date : March 29 2020, 07:55 AM
Hope this helps Your code is fine, the only problem is that your Heroku application can't connect to any Solr host.
If you're using the Websolr addon in Heroku then you should open a support ticket because this should be working. Otherwise, you should run this in the heroku console:
Sunspot.config.solr.url

Tag : ruby-on-rails , By : mdiezb
Date : March 29 2020, 07:55 AM
like below fixes the issue Update2
Fixed! Seems Solr shows only 30 entries by default, so it showed only the most relevant matches and skipped the other I also wanted.
Sunspot.config.pagination.default_per_page = 3000

Solr fulltext search in production - which is better sunspot:solr bundled solution or standalone tomcat+solr?


Tag : ruby-on-rails , By : harley.holt
Date : March 29 2020, 07:55 AM
With these it helps I did something similar lately and had to answer the same questions. My problem space looked like having two languages (so preferably two cores and maybe more for other search options in future), having to index data over several table and search/count facets, partly in hierarchical structures like product groups and hierarchical tags like car_brand/model/type/build_year.
As far as I have seen sunspot works best (only) if you have relative 'flat' data, at best simply have to define for a single model which fields to use. The moment you need to combine several models into a single document for facets, it becomes difficult. (But since I didn't use Sunspot I can't really tell for sure). You can (and should) still use the rsolr gem for the communication with Solr. But if you use Sunspot in development, it is most likely working for you anyway.

Search using Sunspot:solr


Tag : ruby-on-rails , By : CookingCoder
Date : March 29 2020, 07:55 AM
I hope this helps you . it will be easier to answer if you put your models in question but in general way if you have has_many relationship than you should index nested model
#variant model

searchable do

  integer :product_id
  time :check_in     
  time :check_out     

end
#product model

def variant_ids     
  variants.collect(&:id)
end

searchable do

  integer :variant_ids, :multiple=>true
  ...

end

Search solr and sunspot


Tag : ruby-on-rails , By : waarg
Date : March 29 2020, 07:55 AM
wish helps you You will need to configure this in the Solr schema.xmlto compute N-grams for your text fields. Here's one possible example:
<fieldType name="text" class="solr.TextField" omitNorms="false">
  <analyzer type="index">
    <tokenizer class="solr.StandardTokenizerFactory"/>
    <filter class="solr.StandardFilterFactory"/>
    <filter class="solr.LowerCaseFilterFactory"/>
    <filter class="solr.EdgeNGramFilterFactory" minGramSize="1" maxGramSize="15"/>
  </analyzer>
  <analyzer type="query">
    <tokenizer class="solr.StandardTokenizerFactory"/>
    <filter class="solr.StandardFilterFactory"/>
    <filter class="solr.LowerCaseFilterFactory"/>
  </analyzer>
</fieldType>
Related Posts Related QUESTIONS :
shadow
Privacy Policy - Terms - Contact Us © scrbit.com