2011-10-14 70 views
2

我有場 「拼」 的文字 「孔定量disperati SI rovescerebbero CON我barconi sulle nostre。」Solr的eDisMax查詢

我可以通過edismax搜索像這樣的:

q={!field f=spell}disperati si rovescerebbero' - OK 

q={!prefix f=spell}disperat' - OK 

,但我怎麼能搜索不到一個完整的句子是這樣的一個:

q={!field f=spell}disperati si rovescere*' - INCORRECT 
+0

什麼是f參數?應該是qf?嘗試 - q = {!type = dismax qf = spell v ='disperati si rovescere *'} – Jayendra

+0

不,它沒有任何工作。 q = {!type = dismax qf = spell v ='disperati si rovescere *'} - 返回任何東西,但是如果我搜索這樣一個q = {!type = dismax qf = spell v ='disperati si rovescerebbero'} - 數據,但我需要搜索不完整的短語,如「disperati si rovescerebbe」或「disperati si rove」。 – vladimir

+1

q = {!type = edismax qf = spell v ='disperati si rovescerebbero'}返回相同嗎? – Jayendra

回答

2

Try-q = {!type = edismax qf = spell v ='disperati si rovescerebbero *'}