Url's are shortened in the results..

Post Reply
jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

Url's are shortened in the results..

Post by jgdoke »

User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

Url's are shortened in the results..

Post by jason112 »

> Is there a different variable to call to get the full url??

Yup, <Url>.

<UrlDisplay> is intentionally truncated just for displaying.
jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

Url's are shortened in the results..

Post by jgdoke »

User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

Url's are shortened in the results..

Post by jason112 »

That url has extra information from query logging. If you have query logging turned on then there is no element that contains the full URL of the search result (as it you want things to go through redir.html for the logging).

If you turn off query logging, then <Url> will contain juse the url of the document.
jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

Url's are shortened in the results..

Post by jgdoke »

jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

Url's are shortened in the results..

Post by jgdoke »

Is there some way to control the truncating? In some it works but others it cuts off the most important bits. Example:
1. PowerFlex 4 - Custom Firmware DA - Supplementary Instructions
is designed for a specific application and load condition. It differs from the standard PowerFlex4 product offering and must be installed and run only under this ...
http://literature.rockwellautomation.co ... _-en-e.pdf
This cuts off the most important part of the url: "22a"
Full url:
http://literature.rockwellautomation.co ... _-en-e.pdf

There does not seem to be any logic in the cut off. Results from other crawls I have:
http://rockwellautomation.custhelp.com/ ... aqid=49551
http://literature.rockwellautomation.co ... _-en-e.pdf
http://domino.automation.rockwell.com/. ... enDocument
http://domino.automation.rockwell.com/. ... enDocument
http://test.proscon.com/...y/get/Direct ... onCork.pdf
one leaves 17 characters at the end others leave 20 or 19.
Thanks
John
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

Url's are shortened in the results..

Post by mark »

It tries to keep the length to 60 characters while showing the entire hostname. Whatever will fit in 60 after the hostname is what gets displayed. To control it you'd have to use XSL mode and use the actual url instead of the display url.
User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

Url's are shortened in the results..

Post by jason112 »

Also, "Max Title Length" was added as a Search Setting on March 25th, which allows you to extend or disable the truncation if you wish.
jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

Url's are shortened in the results..

Post by jgdoke »

Max Title Length is a great feature but the name denotes that it applies to the "Title" line not to the url line.
User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

Url's are shortened in the results..

Post by jason112 »

> the name denotes that it applies to the "Title"
> line not to the url line.

DOH, yes it does. I read through the post too quickly and got my wires crossed.

*URL* truncation is not directly controllable, but as Mark said you can do your own truncation in the XSL.
Post Reply