LiveServer and Verity search by file name

20 views
Skip to first unread message

Brian B.

unread,
Sep 28, 2010, 12:12:41 PM9/28/10
to RedDot CMS Users
I know you can search based off the group a file is in within
LiveServer (for example: CIS_GROUP <CONTAINS> 'reports') but can't
seem to figure out how to search the actual file name. Is that an
option?

I have a list of files in a session variable that a user should have
access to, and I want to run a verity search that only returns files
if they match the search terms AND the file name is in the list.

Henry Lu a.k.a. Javahand

unread,
Sep 28, 2010, 4:48:45 PM9/28/10
to reddot-c...@googlegroups.com
Brian--

If the exclusion of those files are a permanent arrangement and -- assuming they are published into LiveServer via RedDot CMS -- you can use LiveServer contraint and specify the content of those file "not searchable".

If the exclusion is contingent on which search dynament is doing the actual search, you can embed the file name into the content of the file via keyword import dynament so that the filename itself becomes a meta field (LiveServer content attribute) and can be used to match your search.

When you use the second method though, the attribute really does not have to be the file name, as long as you have an attribute affiliated with the published file that helps you achieve perfect exclusion, it does not matter whether it is the file's name or not.

Henry


--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To post to this group, send email to reddot-c...@googlegroups.com.
To unsubscribe from this group, send email to reddot-cms-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.




--
646-807-8683

Brian B.

unread,
Sep 29, 2010, 12:13:51 PM9/29/10
to RedDot CMS Users
Unfortunately there are too many old files to use the filename as
attribute method which is why I need access to the actual LiveServer
Name value. There is over 100+ gigabytes of old ppt, xls, and docs
that I need this attribute for and no good way (that I know of) to
bulk add the new attribute it to the mass amounts of old files.




On Sep 28, 3:48 pm, "Henry Lu a.k.a. Javahand" <javah...@gmail.com>
wrote:
> > reddot-cms-use...@googlegroups.com<reddot-cms-users%2Bunsu...@googlegroups.com>
> > .

Henry Lu a.k.a. Javahand

unread,
Sep 29, 2010, 12:34:27 PM9/29/10
to reddot-c...@googlegroups.com
Then fight the battle the easier way -- organize the files you actually want to search into content groups whose names you specify in your search dynaments.

To unsubscribe from this group, send email to reddot-cms-use...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.




--
646-807-8683

Brian B.

unread,
Sep 29, 2010, 1:12:38 PM9/29/10
to RedDot CMS Users
That will not work. The parameters and groups change based on users
and date etc etc etc.

Back to the original topic, does anyone know if I can search file
names in LiveServer?



On Sep 29, 11:34 am, "Henry Lu a.k.a. Javahand" <javah...@gmail.com>
wrote:
> > <reddot-cms-users%2Bunsu...@googlegroups.com<reddot-cms-users%252Buns...@googlegroups.com>

Wayne Bouwmeester

unread,
Sep 30, 2010, 10:25:47 AM9/30/10
to RedDot CMS Users
I think constraints is still the way to go.
For files you are publishing out of CMS now, could you get the file
name in there as an attribute?
For files that exist only on DeliveryServer (That sounds like the
case) maybe you could build something that can be used to assign the
file name as an attribute. Do a search, and with your xsl, write the
import dynament that is required to assign the file name to a file
name attribute. Then save the results, and import them, which will
create the attributes. (You're basically just generating some one-time
use code)
Then all your old files have a file name attribute, and you new ones
are kept up to date.
In you constraint, I believe you can do a containsany to see if your
file name is contained in the string of names.

Theoretically there should be a way to query the fie name, but I think
at a verity level it would be ugly.
You need to search the string, not the file name, and the string isn't
indexed.
So you'd end up doing a bunch of OR fileName MATCHES statements for
each file name in the string, and ANDing it to the query.
Wheas contains any in a constraint checks to see if your value (file
name) appears in the multivalued list.

Might this work for you?

Brian B.

unread,
Sep 30, 2010, 10:40:32 AM9/30/10
to RedDot CMS Users
We are currently using constraints but they cause some issues. They
misreport the number of hits and the lastchunk as the numbers they'd
be if you were ignoring contraints. This breaks pagination.

It also appears to cause severe slow down when LiveServer/Verity there
are fewer results than the current chunksize. For example if there are
7 results that match constraints (out of 1600 total matches) the first
chunk of 5 loads fine, but when paging to chunk 2 it is painfully
slow.

If I could get accurate hits and lastchunk numbers using constraints
this could also solve my problem.



On Sep 30, 9:25 am, Wayne Bouwmeester <wayne.bouwmees...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages