2014-04-24 109 views
1

我在Apache Solr上執行搜索,但它向我返回了多個不在搜索範圍內的項目。在Apache Solr中進行精確搜索

例如,我有三個項目,三星平板電腦7「平板電腦三星10.1」和三星電視,只搜索三星電視它與三星平板電腦返回。

如何查詢三星平板電腦10.1,只返回這個項目,不返回其他平板電腦,而不是電視?

http://url-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+*] 
+0

你有與毫米= 100%試圖[edismax](http://wiki.apache.org/solr/ExtendedDisMax)? – leoh

+0

@leoh,tks,這個工程。 – Tomazio

+0

這很瞭解。我添加了評論作爲答案,以防其他人發現問題和解答有幫助 – leoh

回答

1

一種選擇是使用eDisMax查詢與毫米= 100%