Lucene index - problem with indexOriginalTerm

2019-06-24 Thread Piotr Tajduś

Hi,

In latest OAK versions I have noticed problems with indexing words with 
special characters. indexOriginalTerm was set on index, however I 
couldn't find things like "xxx-yyy*" (some versions ago it was working 
fine I think). I have checked sources and it seems that 
"indexOriginalTerm" is used as parameter of the WordDelimiterFilter, 
however OakAnalyzer uses StandardTokenizer which split words on almost 
every special character before WordDelimiterFilter. Here is fragment if 
the the class description:


/ * One use for {@link WordDelimiterFilter} is to help match words with 
different//
// * subword delimiters. For example, if the source text contained 
"wi-fi" one may//
// * want "wifi" "WiFi" "wi-fi" "wi+fi" queries to all match. One way of 
doing so//

// * is to specify combinations="1" in the analyzer used for indexing, and//
// * combinations="0" (the default) in the analyzer used for querying. 
Given that//
// * the current {@link StandardTokenizer} immediately removes many 
intra-word//
// * delimiters, it is recommended that this filter be used after a 
tokenizer that//

// * does not do this (such as {@link WhitespaceTokenizer})./

Is this intended functionality ?


Best regards,

Piotr






Re: Microsoft Exchange listener

2019-06-24 Thread zatrox
Thank you so much Woonsan. I'm deep diving into Sling. It may be useful for
my case.

Regards.



--
Sent from: http://jackrabbit.510166.n4.nabble.com/Jackrabbit-Dev-f523400.html


Re: Microsoft Exchange listener

2019-06-24 Thread Woonsan Ko
On Mon, Jun 24, 2019 at 7:20 AM zatrox  wrote:
>
> Hi all,
>
> I'm quite new to Jackrabbit world and have a newbie question.
>
> I need to listen an Exchange e-mail account and store these e-mails in
> Jackrabbit after performing some classifications (by a rule engine or
> machine learning algorithm) and take some actions such as calling a rest api
> etc with the classification result.
>
> For eg. if the customer is sending a complaint mail then call ticketing
> system's api for creating a ticket.
>
> Is there a bulit-in function or toolset for this scenario?

I think Apache Sling (https://sling.apache.org/) is the best built-in
toolset with Apache Jackrabbit OAK.
Also see these:
- https://sling.apache.org/documentation/getting-started.html
- 
https://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.html

Regards,

Woonsan

>
> Your help is greatly appreciated.
>
>
>
> --
> Sent from: http://jackrabbit.510166.n4.nabble.com/Jackrabbit-Dev-f523400.html


Microsoft Exchange listener

2019-06-24 Thread zatrox
Hi all,

I'm quite new to Jackrabbit world and have a newbie question.

I need to listen an Exchange e-mail account and store these e-mails in
Jackrabbit after performing some classifications (by a rule engine or
machine learning algorithm) and take some actions such as calling a rest api
etc with the classification result.

For eg. if the customer is sending a complaint mail then call ticketing
system's api for creating a ticket.

Is there a bulit-in function or toolset for this scenario?

Your help is greatly appreciated.



--
Sent from: http://jackrabbit.510166.n4.nabble.com/Jackrabbit-Dev-f523400.html