Full Text difference between SQL Server and Postgres

萝らか妹 提交于 2019-12-12 03:22:48

问题


I have access (no source code) to webservice to do street and poi search, the back end is using PostgreSQL. Is very good and accurated. Can weight the words to match State or City, know when is a Street or a Building

If I search:

"calle 15 lomas del avila"
- "calle" mean STREET
- "lomas del avila" is a sector in Caracas city. Found a Bus station and the street name "calle 15"

Now we got some source code for a SQL Server 2012 version from the same provider as webservice. And this time I have the code.

But the result I get from the store procedure are very generic and return lot of result. Looks like the rank value is off because the better match appear on position 5 and 6

Provider claim PostgreSQL is smarter that MSQL and can weight the words in better way. So the different result are caused by different engine.

I'm on the process of understand the MSQL code. But that claim make sense?

Is Postgresql text-search smarter than MSQL? I mean have both same capabilities or one have limit functionality. In postgres I know have some rank funcionality to make some part more importants.

来源:https://stackoverflow.com/questions/32619987/full-text-difference-between-sql-server-and-postgres

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!