如何使GetNormalizedStrings与广泛的匹配midiffier一起工作? [英] how to make GetNormalizedStrings work well with broad match midiffier?

查看:65
本文介绍了如何使GetNormalizedStrings与广泛的匹配midiffier一起工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


根据 http:// msdn。 microsoft.com/en-US/library/aa983141  ,GetNormalizedStrings  将删除一些字符,包括加号(+),


但加号也是广泛匹配的修改者。现在GetNormalizedStrings  也会删除加号。这是测试结果:


        $ strings = array();

        $ strings [] ='红色粉丝';

        $ strings [] ='+ red + follower';


在调用GetNormalizedStrings后,它返回:


array(2){

  [0] =>

  string(12)"red follower"

  [1] =>

  string(12)"red follower"


}


有没有办法让GetNormalizedStrings  使用加号?

解决方案

Hello Gavin,


在完成我们的调查后,我们确定了根本原因是设计。


此方案中有两个选项可供您使用。


1。)他们可以通过规范化提交关键字服务,然后添加"+"关键字的标志。


2。)客户可以在不经过规范化过程的情况下提交关键字。


希望这会有所帮助! : - )


Hi,

according http://msdn.microsoft.com/en-US/library/aa983141 , GetNormalizedStrings   will remove some characters, include the plus(+),

but the plus also is a modiffier for broad match. now the GetNormalizedStrings   will remove the plus also. here is the test result:

        $strings = array();
        $strings[] = 'red follower';
        $strings[] = '+red +follower';

after called GetNormalizedStrings, it returned:

array(2) {
  [0]=>
  string(12) "red follower"
  [1]=>
  string(12) "red follower"
}

is there any way to make GetNormalizedStrings  work with the plus sign?

解决方案

Hello Gavin,

After concluding our investigation, we have determined the root cause to be that this is working by design.

There are two options in this scenario that you may  utilize.

1.) They can submit the keywords through normalization service and then add the "+" signs to the keywords.

2.) The customer can submit the keywords without going through the normalization process.

Hope this helps! :-)


这篇关于如何使GetNormalizedStrings与广泛的匹配midiffier一起工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆