solrj - How to enable using a magic field with eDisMax in Solr 9.4? - Stack Overflow
I use Solr 9.4 and I'm trying to run a query with defType=eDisMax and qf=title,category,description, and mm=2<-1 4<70%.
Earlier, I was searching for q=phool+jhaadu
and getting documents returned. Now I want to search for both "phool jhaadu" and "grass broom" with an OR condition.
I tried to write a query like:
q=_query_:"{!edismax mm='2<-1 4<70%'}phool jhaadu" OR _query_:"{!edismax mm='2<-1 4<70%'}grass broom"
But this returned 0 results, even though "q=phool+jhaadu" by itself was returning many results.
As per the documentation the magic field _query_ is disabled by default and needs to be enabled by mentioning it in the uf parameter.
To use the uf parameter, so far I've tried:
q=_query_:"{!edismax mm='2<-1 4<70%' uf=,query}phool jhaadu" OR _query_:"{!edismax mm='2<-1 4<70%' uf=*,_query_}grass broom"
q=_query_:"{!edismax mm='2<-1 4<70%' uf=query}phool jhaadu" OR _query_:"{!edismax mm='2<-1 4<70%' uf=_query_}grass broom"
q=_query_:"{!edismax mm='2<-1 4<70%'}phool jhaadu" OR _query_:"{!edismax mm='2<-1 4<70%'}grass broom"&uf=*,_query_
q=_query_:"{!edismax mm='2<-1 4<70%'}phool jhaadu" OR _query_:"{!edismax mm='2<-1 4<70%'}grass broom"&uf=_query_
None of these have worked. All of them returned zero results despite there being many documents containing both "phool jhaadu" and "grass broom" in the title. What mistake am I making here?
- 拍照比“剪刀手”注意了!专家:会泄露指纹信息
- 微软每年从安卓厂商获20亿美元专利费
- 谷歌收购移动软件商Quickoffice 整合Apps
- [连载]巨头“心血之作”终失败(一):苹果Apple TV
- JavaScript event loop does NOT "run to completion" - Stack Overflow
- kotlin - Do I need Serialization to Transfer a MutableMap Between Minecraft Server and Client? If so, How Should I Serialize It?
- c++ - Microbenchmark - backward iteration results in fewer cache misses - Stack Overflow
- installation - Upgrading to Inno Setup v6 - SignTool=sha1 no longer works - Stack Overflow
- swiftui - Swift Mocking a throwing function - Stack Overflow
- python 3.x - why is sqllachemy returning a class instead of a string - Stack Overflow
- oauth 2.0 - how Can we add group roles claim in okta access token or id token - Stack Overflow
- docker - Python Telegram bot freezes when run by Airflow - Stack Overflow
- dolphindb - Whitepaper error: “cannot recognize the token b” - Stack Overflow
- In Visual Studio 2022, Can not export and import new Project Template - Stack Overflow
- pytorch - how to get custom column in the model's forward() function when training with Huggingface Trainer? - Stack Ove
- wordpress - XML Reader Not Found in cPANEL php v8.3 - Stack Overflow
- excel - VBA script to remove duplicates when the gap values between duplicate pair meets certain criteria - Stack Overflow