Hi Spike,

> I've got a Field configured in my database that I want to do
> field-words() queries against, but the contents of the
> element is a URL. It seems that when I do searches, the field
> is the URL broken up by symbol. For example:
>
> http://www.facebook.com/Seal?sid=01cfb667e33bd4a46d3460853fbf3
> fe7&ref=search
>
> is translated into the following fieldwords:
> *     http
> *     www
> *     facebook
> *     com
> *     Seal
> *     Sid
> *     01cfb667e33bd4a46d3460853fbf3fe7
> *     ref
> *     search

You should indeed be using a range index in combination with 
cts:element-values() as suggested by Frank, Justin and Michael.

Just wanted to add that the essential difference with your fields approach lies 
in the fact that the fields index is a Word index. Element contents is always 
tokenized before being stored in a Word index. That is not the case with Range 
indexes. That is why cts:field-words() (like cts:words(), cts:element-words() 
and cts:element-attribute-words()) returns the tokenized url, while 
cts:element-values() (as would cts:element-attribute-values()) not..

Kind regards,
Geert


Drs. G.P.H. Josten
Consultant


http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.



_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to