On Mon, Nov 19, 2007 at 05:52:53PM -0800, Xueshan Feng wrote:
>
> The default search rule seems "OR", instead "AND" as documented by
> SWISH-E documentation. For example, if we search "University must", all
> articles contain either "University", OR "must" will show up in the
> search results.
>
> The results are the same from the command line swish-e -w "Univesrity
> must", and from the swish.cgi script search.
>
> Apparently I misseed something?
$ echo university > uni
$ echo must > must
$ echo "university must" > both
$ swish-e -i uni must both -v0
$ swish-e -H0 -w must
1000 both "both" 16
1000 must "must" 5
$ swish-e -H0 -w university
1000 both "both" 16
1000 uni "uni" 11
$ swish-e -H0 -w 'must university'
1000 both "both" 16
$ swish-e -H0 -w 'university must'
1000 both "both" 16
$ swish-e -H0 -w 'university AND must'
1000 both "both" 16
$ swish-e -H0 -w 'university OR must'
1000 both "both" 16
249 must "must" 5
249 uni "uni" 11
--
Bill Moseley
moseley@hank.org
Unsubscribe from or help with the swish-e list:
http://swish-e.org/Discussion/
Help with Swish-e:
http://swish-e.org/current/docs
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Mon Nov 19 21:24:34 2007