You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Eirikur Hrafnsson <ei...@idega.is> on 2006/06/21 18:57:57 UTC

Incorrect wiki page, DaslConfiguration. And casesensitivity

Hi all,

I just wanted to point out an error in the Wiki page that has wasted  
my time twice now since I had forgotten it from the first time : /
http://wiki.apache.org/jakarta-slide/DaslConfiguration

The page states and illustrates that you can use a Slide only  
<S:property-contains> in your DASL searching. This will not fly!
The correct name for the parameter is <S:propcontains> as I learned  
from an earlier post to this mailing list.

Someone with Wiki edit privileges might want to change that...

p.s.
Is there any way to do a case-insensitive search with propcontains ?

best regards
Eiki, idega.

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ 
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Eirikur S. Hrafnsson
Chief Software Engineer

eiki@idega.is


¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ 
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Idega hf.  ı  Engjavegi 6  ı  104 Reykjavík  ı  Iceland
Tel. +354 554 7557  ı  Fax +354 885 7557

http://www.idega.com  ı  idega@idega.com



Re: Incorrect wiki page, DaslConfiguration. And casesensitivity

Posted by Eirikur Hrafnsson <ei...@idega.is>.
To answer myself a little with the case insensitive property search  
question:

I changed my Domain.xml to redefine how some of the standard  
properties are indexed like so:
<propertiesindexer  
classname="org.apache.slide.index.lucene.LucenePropertiesIndexer">
					<parameter name="indexpath">
						store/index/metadata
					</parameter>
					<parameter name="asynchron">
						true
					</parameter>
					<configuration name="indexed-properties">
						<!-- Idegaweb custom properties and forcing some standard  
properties to be case insensitive -->
						<property name="ContentType" namespace="IW:">
							<text analyzer="org.apache.lucene.analysis.SimpleAnalyzer"/>
							<is-defined />
						</property>
						<property name="displayname" namespace="DAV:">
							<text analyzer="org.apache.lucene.analysis.SimpleAnalyzer"/>
							<is-defined />
						</property>
						<property name="creator-displayname" namespace="DAV:">
							<text analyzer="org.apache.lucene.analysis.SimpleAnalyzer"/>
							<is-defined />
						</property>
						<property name="getcontenttype" namespace="DAV:">
							<text analyzer="org.apache.lucene.analysis.SimpleAnalyzer"/>
							<is-defined />
						</property>
						<property name="comment" namespace="DAV:">
							<text analyzer="org.apache.lucene.analysis.SimpleAnalyzer"/>
							<is-defined />
						</property>
						<property name="getcontentlanguage" namespace="DAV:">
							<text analyzer="org.apache.lucene.analysis.SimpleAnalyzer"/>
							<is-defined />
						</property>
					</configuration>
				</propertiesindexer>

After doing that AND uploading my test file again to re-index it (or  
you could throw away the whole index to regenerate it on startup)
I managed to find the file by a part of its displayname with a DASL  
search and it isn't case-sensitive anymore : )

best regards
Eiki, idega.


On 21.6.2006, at 17:35, Eirikur Hrafnsson wrote:

> uh yes there is.
>
> From http://wiki.apache.org/jakarta-slide/DaslConfiguration
> Operators (extensions)
> Operator property-contains
>
> Is an extension to RFC. It works like the contains operator but for  
> properties. This is intended for use with properties that contains  
> abstracts, keyword lists etc.
>
>
>
> On 21.6.2006, at 17:14, Michael Oliver wrote:
>
>> Uh, no there is no reference to "<S:property-contains>" on the
>> DaslConfiguration page of the wiki.
>>
>> Michael Oliver
>> CTO
>> Alarius Systems LLC
>> 6800 E. Lake Mead Blvd, #1096
>> Las Vegas, NV 89156
>> Phone:(702)866-9034
>> Cell:(518)378-6154
>> Fax:(702)974-0341
>>
>>
>> -----Original Message-----
>> From: Eirikur Hrafnsson [mailto:eiki@idega.is]
>> Sent: Wednesday, June 21, 2006 10:58 AM
>> To: Slide Developers Mailing List
>> Cc: Slide Users Mailing List
>> Subject: Incorrect wiki page, DaslConfiguration. And casesensitivity
>>
>> Hi all,
>>
>> I just wanted to point out an error in the Wiki page that has wasted
>> my time twice now since I had forgotten it from the first time : /
>> http://wiki.apache.org/jakarta-slide/DaslConfiguration
>>
>> The page states and illustrates that you can use a Slide only
>> <S:property-contains> in your DASL searching. This will not fly!
>> The correct name for the parameter is <S:propcontains> as I learned
>> from an earlier post to this mailing list.
>>
>> Someone with Wiki edit privileges might want to change that...
>>
>> p.s.
>> Is there any way to do a case-insensitive search with propcontains ?
>>
>> best regards
>> Eiki, idega.
>>
>> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ 
>> ¯¯¯
>> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
>> Eirikur S. Hrafnsson
>> Chief Software Engineer
>>
>> eiki@idega.is
>>
>>
>> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ 
>> ¯¯¯
>> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
>> Idega hf.  ı  Engjavegi 6  ı  104 Reykjavík  ı  Iceland
>> Tel. +354 554 7557  ı  Fax +354 885 7557
>>
>> http://www.idega.com  ı  idega@idega.com
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>>
>>
>


Re: Incorrect wiki page, DaslConfiguration. And casesensitivity

Posted by Eirikur Hrafnsson <ei...@idega.is>.
hehe am I going insane or are I just getting cached versions of that  
Wiki page??
Have you looked at the page or are you just changing it in the cvs.

I will copy and paste the whole thing here (as plain text), and then  
tell me there is no example code with property-contains in it:
Jakarta-slide Wiki

Login
FrontPage
RecentChanges
FindPage
HelpContents
DaslConfiguration

Immutable Page
Show Changes
Get Info
More Actions:Show Raw TextShow Print ViewDelete Cache-------- 
AttachmentsCheck SpellingShow Like PagesShow Local Site Map-------- 
Rename PageDelete Page
DaslConfiguration
DASL Configuration
The default implementation scans the complete resource tree provided  
in the scope of DASL query and tests for each resource whether it  
matches the condition or not.

This works, but is quite slow.

To avoid this, you caurrently have the following options:

If you are using JDBCStore/J2EEStore you can enable metadata  
searching using the database.
You can enable metadata searching using integrated lucene search engine.
You can enable content searching using integrated lucene search engine.


Searching meta-data using RDMBS
If you are using a JDBCStore/J2EEStore you can use the database to  
search the metadata. To enable this add the parameter use-rdbms- 
expression-factory to your store definition.

<store name="myStore">
   <parameter name="cache-mode">full</parameter>
     <nodestore classname="org.apache.slide.store.impl.rdbms.JDBCStore">
       ... your JDBCStore configuration ..
       <parameter name="use-rdbms-expression-factory">true</parameter>
     </nodestore>
     <securitystore><reference store="nodestore"/></securitystore>
     <lockstore><reference store="nodestore"/></lockstore>
     <revisiondescriptorsstore><reference store="nodestore"/></ 
revisiondescriptorsstore>
     <revisiondescriptorstore><reference store="nodestore"/></ 
revisiondescriptorstore>
     <contentstore><reference store="nodestore"/></contentstore>
</store>



Searching meta-data with the Lucene based properties indexer
Note this is under delevlopment, and will be part of Slide 2.2. To  
check this out you can use cvs HEAD.

Searching the meta data.

Enabling
To use this indexer add the following to your store definition.

   <propertiesindexer  
classname="org.apache.slide.index.lucene.LucenePropertiesIndexer">
       <parameter name="indexpath">store/index/metadata</parameter>
   </propertiesindexer>

Parameter

parameter
description
required/default
indexpath
directory where the index data is stored
true/none
asynchron
If set to false the index is updated inside the transaction. If set  
to true the index in updated on a separate thread. So the transaction  
can be finished before the index is updated.
no/false
priority
Priority ofthe indexing thread if asynchron is true. Must be a value  
between Thread.MIN_PRIORITY and Thread.MAX_PRIORITY
no/Thread.NORM_PRIORITY
includes
A comma separated list of pathes for which indexix should happen. If  
empty all inthe store is indexed
no
optimization-threshold
The number of write accesses to the index after which the index is  
optimized
no/100
supported DASL operators and data types
The indexer currently supports the datatypes:

string indexed with out any modification

date indexed as a normalized date string (without seconds)

integer indexed as a normalized integer string (between  
Long.MIN_VALUE and Long.MAX_VALUE)

text indexed in a tokenized and normalized form (normalized using  
Lucene analyzers)


string
date
integer
text
eq
*
*
*
-
lt
+
*
*
-
gt
+
*
*
-
lte
+
*
*
-
gte
+
*
*
-
like
*
~
~
-
is-defined
*
*
*
*
between
+
*
*
-
property-contains
-
-
-
*
* supported (if indexing for the property is enabled)

+ ditto but the order of strings is limited to char code ordering

~ supported but not executed with the index (so will be slow)

- unsupported (will return an error)

Also supported are the boolean operators and, or, not and the special  
operators is-collection and is-principal.

Configuring what properties are indexed
TODO

To reduce the indexing overhead, not all properties are index by  
default. For properties that are not indexed the default search  
implementation we be called.

By default the following properties are indexed:

namespace
property
type
DAV:
displayname
string
DAV:
getcontenttype
string
DAV:
getcontentlanguage
string
DAV:
getcontentlength
integer
DAV:
getlastmodified
date
DAV:
creationdate
date
User defined text properties

You can add additional properties to the indexing, including user  
defined properties.

The following sample defines two user defined properties in the  
namepace 

RE: Incorrect wiki page, DaslConfiguration. And casesensitivity

Posted by Michael Oliver <ol...@alariussystems.com>.
Uh no there is not now and was not then, and my dad can whip your dad.

There was no reference for the string "<S:property-contains>" as I said.

And now there is no reference to the string "property-contains" either.

Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)866-9034
Cell:(518)378-6154
Fax:(702)974-0341
 

-----Original Message-----
From: Eirikur Hrafnsson [mailto:eiki@idega.is] 
Sent: Wednesday, June 21, 2006 11:36 AM
To: Slide Developers Mailing List
Subject: Re: Incorrect wiki page, DaslConfiguration. And casesensitivity

uh yes there is.

 From http://wiki.apache.org/jakarta-slide/DaslConfiguration
Operators (extensions)
Operator property-contains

Is an extension to RFC. It works like the contains operator but for  
properties. This is intended for use with properties that contains  
abstracts, keyword lists etc.



On 21.6.2006, at 17:14, Michael Oliver wrote:

> Uh, no there is no reference to "<S:property-contains>" on the
> DaslConfiguration page of the wiki.
>
> Michael Oliver
> CTO
> Alarius Systems LLC
> 6800 E. Lake Mead Blvd, #1096
> Las Vegas, NV 89156
> Phone:(702)866-9034
> Cell:(518)378-6154
> Fax:(702)974-0341
>
>
> -----Original Message-----
> From: Eirikur Hrafnsson [mailto:eiki@idega.is]
> Sent: Wednesday, June 21, 2006 10:58 AM
> To: Slide Developers Mailing List
> Cc: Slide Users Mailing List
> Subject: Incorrect wiki page, DaslConfiguration. And casesensitivity
>
> Hi all,
>
> I just wanted to point out an error in the Wiki page that has wasted
> my time twice now since I had forgotten it from the first time : /
> http://wiki.apache.org/jakarta-slide/DaslConfiguration
>
> The page states and illustrates that you can use a Slide only
> <S:property-contains> in your DASL searching. This will not fly!
> The correct name for the parameter is <S:propcontains> as I learned
> from an earlier post to this mailing list.
>
> Someone with Wiki edit privileges might want to change that...
>
> p.s.
> Is there any way to do a case-insensitive search with propcontains ?
>
> best regards
> Eiki, idega.
>
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ 
> ¯¯
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
> Eirikur S. Hrafnsson
> Chief Software Engineer
>
> eiki@idega.is
>
>
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ 
> ¯¯
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
> Idega hf.  ı  Engjavegi 6  ı  104 Reykjavík  ı  Iceland
> Tel. +354 554 7557  ı  Fax +354 885 7557
>
> http://www.idega.com  ı  idega@idega.com
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


Re: Incorrect wiki page, DaslConfiguration. And casesensitivity

Posted by Eirikur Hrafnsson <ei...@idega.is>.
uh yes there is.

 From http://wiki.apache.org/jakarta-slide/DaslConfiguration
Operators (extensions)
Operator property-contains

Is an extension to RFC. It works like the contains operator but for  
properties. This is intended for use with properties that contains  
abstracts, keyword lists etc.



On 21.6.2006, at 17:14, Michael Oliver wrote:

> Uh, no there is no reference to "<S:property-contains>" on the
> DaslConfiguration page of the wiki.
>
> Michael Oliver
> CTO
> Alarius Systems LLC
> 6800 E. Lake Mead Blvd, #1096
> Las Vegas, NV 89156
> Phone:(702)866-9034
> Cell:(518)378-6154
> Fax:(702)974-0341
>
>
> -----Original Message-----
> From: Eirikur Hrafnsson [mailto:eiki@idega.is]
> Sent: Wednesday, June 21, 2006 10:58 AM
> To: Slide Developers Mailing List
> Cc: Slide Users Mailing List
> Subject: Incorrect wiki page, DaslConfiguration. And casesensitivity
>
> Hi all,
>
> I just wanted to point out an error in the Wiki page that has wasted
> my time twice now since I had forgotten it from the first time : /
> http://wiki.apache.org/jakarta-slide/DaslConfiguration
>
> The page states and illustrates that you can use a Slide only
> <S:property-contains> in your DASL searching. This will not fly!
> The correct name for the parameter is <S:propcontains> as I learned
> from an earlier post to this mailing list.
>
> Someone with Wiki edit privileges might want to change that...
>
> p.s.
> Is there any way to do a case-insensitive search with propcontains ?
>
> best regards
> Eiki, idega.
>
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ 
> ¯¯
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
> Eirikur S. Hrafnsson
> Chief Software Engineer
>
> eiki@idega.is
>
>
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ 
> ¯¯
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
> Idega hf.  ı  Engjavegi 6  ı  104 Reykjavík  ı  Iceland
> Tel. +354 554 7557  ı  Fax +354 885 7557
>
> http://www.idega.com  ı  idega@idega.com
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>
>


RE: Incorrect wiki page, DaslConfiguration. And casesensitivity

Posted by Michael Oliver <ol...@alariussystems.com>.
Uh, no there is no reference to "<S:property-contains>" on the
DaslConfiguration page of the wiki.

Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)866-9034
Cell:(518)378-6154
Fax:(702)974-0341
 

-----Original Message-----
From: Eirikur Hrafnsson [mailto:eiki@idega.is] 
Sent: Wednesday, June 21, 2006 10:58 AM
To: Slide Developers Mailing List
Cc: Slide Users Mailing List
Subject: Incorrect wiki page, DaslConfiguration. And casesensitivity

Hi all,

I just wanted to point out an error in the Wiki page that has wasted  
my time twice now since I had forgotten it from the first time : /
http://wiki.apache.org/jakarta-slide/DaslConfiguration

The page states and illustrates that you can use a Slide only  
<S:property-contains> in your DASL searching. This will not fly!
The correct name for the parameter is <S:propcontains> as I learned  
from an earlier post to this mailing list.

Someone with Wiki edit privileges might want to change that...

p.s.
Is there any way to do a case-insensitive search with propcontains ?

best regards
Eiki, idega.

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ 
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Eirikur S. Hrafnsson
Chief Software Engineer

eiki@idega.is


¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ 
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Idega hf.  ı  Engjavegi 6  ı  104 Reykjavík  ı  Iceland
Tel. +354 554 7557  ı  Fax +354 885 7557

http://www.idega.com  ı  idega@idega.com




---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org