Exact Search on Apache Solr

Asked

Viewed 178 times

-1

Hello. I’m doing a search on Apache Solr but it returns me several items that are outside the search.

For example, let’s say I have three items, Samsung Tablet 7", Samsung Tablet 10.1" and Samsung TV, when searching only for Samsung TV it returns together the Samsung Tablet.

How would be the query to fetch Samsung Tablet 10.1 and only return this item and not return the other tablets and neither the TV?

http://site.com/collection1/select?q=*tv%20samsung*&start=0&rows=16&sort=name+asc&wt=json&indent=true&facet=true&facet.field=cat_id&facet.field=atributos&facet.field=manu_id&fq=price:[0.01+TO+*]
  • To improve your question. Please also add your code.

1 answer

0

The solution is simple, just add the following parameters in the search URL:

&defType=edismax&mm=100%25&stopwords=true&lowercaseOperators=true

Browser other questions tagged

You are not signed in. Login or sign up in order to post.