Re: XPath jcr:contains(.,\"value\") exlude one or more Properties

2017-02-04 Thread Roy Teeuwen
Hey Michael, You could do it by combining it, search all properties by using the '.' and then combine it with an and expression where you say myproperty does not contain myvalue (by prefixing it with a minus sign) For example: /jcr:root//*[jcr:contains(.,'myvalue') and

Re: XPath jcr:contains(.,\"value\") exlude one or more Properties

2017-02-04 Thread Roy Teeuwen
Just as an extra, seeing as JCR XPath is actually deprecated, you could also easily do it in JCR SQL2 ;) select * from [nt:base] as s where contains(*,'myvalue') and not contains(myproperty, 'myvalue') > On 4 Feb 2017, at 21:48, Roy Teeuwen <r...@teeuwen.be> wrote: > > Hey Mi

Re: XPath jcr:contains(.,"value") exlude one or more Properties

2017-02-04 Thread Roy Teeuwen
Hey Michael, That's exactly what first argument is for. The dot "." means that it will search all the properties. If you want to search in a specific property, you could make it jcr:contains(@myproperty,"my value") Greets Roy > On 4 Feb 2017, at 19:31, zerocoo...@web.de wrote: > > Hi guys, >

Escaping % sign in a query

2017-01-11 Thread Roy Teeuwen
Hey all, I am trying to do a query where the actual word I am looking for looks like %%myword%%. I have tried the following in XPATH and JCR_SQL2, but it seems that the % sign is in both query languages a wildcard, meaning i will find all the nodes containing myword instead of %%myword%%. How

Re: Escaping % sign in a query

2017-01-12 Thread Roy Teeuwen
:contains(., 'myword')] > > > There might be also a difference between Jackrabbit 2.x and Jackrabbit > Oak. Which one (and which version) do you use? > > Regards, > Thomas > > > > On 11/01/17 18:18, "Roy Teeuwen" <r...@teeuwen.be> wrote: > &g

Re: Escaping % sign in a query

2017-01-12 Thread Roy Teeuwen
"like", '%' is a wildcard > (same as for SQL), so you must not escape the first and last character. > But because you want to search for '%', you need to escape all other cases. > > Regards, > Thomas > > > > > On 12/01/17 12:36, "Roy Teeuwen" <

Re: Escaping % sign in a query

2017-01-11 Thread Roy Teeuwen
Yes i did ;), same results Greets, Roy > On 11 Jan 2017, at 18:30, Clay Ferguson <wcl...@gmail.com> wrote: > > did you try this? > > CONTAINS(s.*, '\%\%myword\%\%') > > Best regards, > Clay Ferguson > wcl...@gmail.com > > > On Wed, Jan 11, 2017

Re: FileVault for import and export of JCR?

2017-01-06 Thread Roy Teeuwen
Hey Lance, Seeing as you are going to use Sling, have you looked at Composum[1]? It has all the features you need from CRX, it makes packages, it has a repository browser,... It has MIT License and will even be included from the upcoming release of Sling, version 9, on. Greets, Roy [1]

Repository migration - exclude paths

2017-06-22 Thread Roy Teeuwen
Hey all, I have been using the oak migration tool for some time now (oak-upgrade jar) and use it to do a copy of one repository to another, which works very well for us. One thing I would like to do is to exclude a specific folder, which is available in multiple folders. Is it possible to use

Re: Filevault OakConstraint0021 Exception

2017-06-09 Thread Roy Teeuwen
> Rergards, > > > On 09.06.2017 14:41, Roy Teeuwen wrote: >> Hey all, >> >> I am trying to do a vlt rcp between two machines to sync some content from a >> production environment to an acceptance environment. I am getting the >> following ex

Filevault OakConstraint0021 Exception

2017-06-09 Thread Roy Teeuwen
Hey all, I am trying to do a vlt rcp between two machines to sync some content from a production environment to an acceptance environment. I am getting the following exception: [ERROR] Error during intermediate save (1048); try again later: javax.jcr.nodetype.ConstraintViolationException:

Oak - Corrupt lucene index update

2017-09-20 Thread Roy Teeuwen
Hey all, We are facing the a reindex issue with with Oak (1.4.8) when the async reindex gets triggered, this has been going on for 3 days now and because of this the datastore has grown to 1TB of data because it keeps on trying to reindex the Lucene index. Could anyone help me in what would be

Re: Filevault OakConstraint0021 Exception

2017-09-25 Thread Roy Teeuwen
Hey, Nop, I didn't get to solve it, in the end I used the oak-migration tool[1] to export the data from one server and import it in the other. This does not have the issue and can just import everything and is a lot faster than VLT (an export of a repo and datastore of around 15GB takes

Daily content sync between environments

2017-10-22 Thread Roy Teeuwen
when going for the second part would be to expand the oak-migration tool to optionally specify which paths it should export based on a specific date property being larger/smaller than the one you pass as parameter Any opinions / suggestions on this are more than welcome. Greets, Roy Teeuwen [1

Oak - Creating second fulltext lucene index

2018-06-26 Thread Roy Teeuwen
Hey guys, I have the following situation: - I have a sentence, for example "This is my %%sentence%% I want to search for" and I would like to query for the term %%sentence%% (could be in any property) - The default built-in full text oak lucene index uses the Standard Analyzer, which parses

Re: Oak - Creating second fulltext lucene index

2018-07-13 Thread Roy Teeuwen
Hey Thomas, Thanks for the reply! How would I make sure the cost is always higher? There is also second option that I was thinking about, correct me if I'm wrong please: - Create a new lucene property index that searches for a nonexisting property - Create an IndexFieldProvider class that

Re: Oak - Creating second fulltext lucene index

2018-07-09 Thread Roy Teeuwen
No one who could help me out on this issue? > On 26 Jun 2018, at 20:13, Roy Teeuwen wrote: > > Hey guys, > > I have the following situation: > > - I have a sentence, for example "This is my %%sentence%% I want to search > for" and I would like to quer

Re: Oak - Creating second fulltext lucene index

2018-07-13 Thread Roy Teeuwen
cher.group(1), Field.Store.NO)); } } @Override public Set getSupportedTypes() { Set supportedTypes = new HashSet<>(); supportedTypes.add("nt:unstructured"); return supportedTypes; } } Greets, Roy > On 13 Jul 2018, at 13:20, Roy Teeuwen wrote

Re: Finding out the diskspace used of specific nodes

2018-03-06 Thread Roy Teeuwen
this (see > https://issues.apache.org/jira/browse/OAK-6584), but so far not much > commitment in making his happen. Patches welcome though! > > Michael > > On 4 March 2018 at 15:22, Roy Teeuwen <r...@teeuwen.be> wrote: >> Hey guys, >> >> I am using Oak 1.6.6 w

Re: Finding out the diskspace used of specific nodes

2018-03-07 Thread Roy Teeuwen
d be > placed under scrutiny. > > Michael > > On 04.03.18 15:22, Roy Teeuwen wrote: >> Hey guys, >> >> I am using Oak 1.6.6 with an authoring system and a few publish systems. We >> are using the latest TarMK that is available on the 1.6.6 branch and al

Finding out the diskspace used of specific nodes

2018-03-04 Thread Roy Teeuwen
Hey guys, I am using Oak 1.6.6 with an authoring system and a few publish systems. We are using the latest TarMK that is available on the 1.6.6 branch and also using the separate file datastore instead of embedded in the segment store. What I have noticed so far is that the segment store of

Offline compaction - performance

2018-03-05 Thread Roy Teeuwen
Hey guys, We have upgraded to Oak 1.6.5 (AEM 6.3) and we have noticed that the offline compaction is a lot slower than it was initially in AEM 6.1. While we had compaction of 5-15 mins for 15GB at first, it now takes half an hour. Is there any performance tweaking / parameters we can use to

Re: Offline compaction - performance

2018-03-05 Thread Roy Teeuwen
t* contain parts of > this data and it *might* be possible to recover *some* of it manually. > If this is not needed (I haven't seen a case where it was so far), you > can safely remove them. > > Michael > > . > > On 5 March 2018 at 14:44, Roy Teeuwen <r...@teeuwen.be>

Multiple threads on same session

2019-03-21 Thread Roy Teeuwen
Hey, We have a system that migrates our sites based on migration rules, the psuedocode is as the following: session = getNewSession("migration-user"); for(Site site in sites) { migrateSite(session) } Everything works fine, but we would like it more performant, so the change I did was

Datastore inconsistency

2019-05-26 Thread Roy Teeuwen
Hey all, I had some issues with datastore blob files missing. After running the oak-run datastorecheck I found the path/ids of the blobs that were missing. I fixed it by copying over the blobs from another environment. But alternatively, how could I know which jcr path these blobs actually

Custom nodetype index

2019-08-30 Thread Roy Teeuwen
Hey, I would like to add a custom nodetype / mixintype to be indexed. I have seen there is a nodetype index, but I don't want to change the OOTB one because this would be hard to maintain. I have found the following page but this actually makes it even worse:

Executing xpath queries with a number in the path

2019-08-29 Thread Roy Teeuwen
Hey all, (double posted because I thought this might be more relevant in jackrabbit after thinking about it) In the framework that we use (AEM) there is a folder structure as following: /content/launches/2019/08/29/my-launch/content/site-name I would like to do a query to search for

Re: Jackrabbit Filevault Validation - Skip certain subpackage

2023-07-06 Thread Roy Teeuwen
hanks, > Konrad > >> On 5. Jul 2023, at 21:13, Roy Teeuwen wrote: >> >> Hey all, >> >> I'd like to skip the validation for only a certain subpackage (with other >> subpackages contained in that subpackage). Is this possible? I see that >> there

Re: Jackrabbit Filevault Validation - Skip certain subpackage

2023-07-17 Thread Roy Teeuwen
ch a rule could be donated to ASF FileVault so other > could use it too easily. > > Konrad > >> On 7. Jul 2023, at 07:31, Roy Teeuwen wrote: >> >> Hey Konrad, >> >> Sure, the case is the following: >> >> I have the following reactor module:

Jackrabbit Filevault Validation - Skip certain subpackage

2023-07-05 Thread Roy Teeuwen
Hey all, I'd like to skip the validation for only a certain subpackage (with other subpackages contained in that subpackage). Is this possible? I see that there is a skipSubPackageValidation, but this skips all sub packages while I only want to do one. I also see you can make custom

Re: Jackrabbit Filevault Validation - Skip certain subpackage

2023-07-13 Thread Roy Teeuwen
Anyone has a viable solution for the question? Any other way of doing this, for example with oakpal, is also an option, it would just make the build slower I suspect > On 7 Jul 2023, at 07:31, Roy Teeuwen wrote: > > Hey Konrad, > > Sure, the case is the following: > >

Re: Jackrabbit Filevault Validation - Skip certain subpackage

2023-07-26 Thread Roy Teeuwen
s direct > dependencies to prevent transitive packages from being accidentally embedded. > Probably that helps already. > Konrad > >> On 17. Jul 2023, at 16:16, Roy Teeuwen wrote: >> >> Hey Konrad, >> >> OK, I created a ticket to follow this up: >>