You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Cristian Lorenzetto <cr...@gmail.com> on 2017/03/05 00:32:40 UTC

how to search a tree node in lucene?

Hi
i might implement a performant solution for searching a tree node, parent
of a node , children of a node.

a simple idea is

save the path to specific node
and searching prefix/suffix...


Is there a specific solution in the lucene libraries for doing it?

RE: how to search a tree node in lucene?

Posted by Uwe Schindler <uw...@thetaphi.de>.
Hi,

The idea here is to use a special Tokenizer that creates multiple tokens of Path-like structures (think of file system paths). If your tree and its nodes are organized like this, you can use it to do the task. Doesn't matter if it's Lucene or Solr. Analyzers and their components can be used in both.

Uwe

-----
Uwe Schindler
Achterdiek 19, D-28357 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de

> -----Original Message-----
> From: Cristian Lorenzetto [mailto:cristian.lorenzetto@gmail.com]
> Sent: Sunday, March 5, 2017 6:13 PM
> To: Lucene Users <ja...@lucene.apache.org>
> Subject: Re: how to search a tree node in lucene?
> 
> it is lucene or solr? I m using lucene.
> 
> 2017-03-05 18:06 GMT+01:00 Erick Erickson <er...@gmail.com>:
> 
> > PathHeirarchyTokenizer?
> >
> > On Sat, Mar 4, 2017 at 5:00 PM, Cristian Lorenzetto
> > <cr...@gmail.com> wrote:
> > > ah right ... facet ?  it isnt?
> > >
> > > 2017-03-05 1:32 GMT+01:00 Cristian Lorenzetto <
> > cristian.lorenzetto@gmail.com
> > >>:
> > >
> > >> Hi
> > >> i might implement a performant solution for searching a tree node,
> > parent
> > >> of a node , children of a node.
> > >>
> > >> a simple idea is
> > >>
> > >> save the path to specific node
> > >> and searching prefix/suffix...
> > >>
> > >>
> > >> Is there a specific solution in the lucene libraries for doing it?
> > >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
> >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: how to search a tree node in lucene?

Posted by Cristian Lorenzetto <cr...@gmail.com>.
it is lucene or solr? I m using lucene.

2017-03-05 18:06 GMT+01:00 Erick Erickson <er...@gmail.com>:

> PathHeirarchyTokenizer?
>
> On Sat, Mar 4, 2017 at 5:00 PM, Cristian Lorenzetto
> <cr...@gmail.com> wrote:
> > ah right ... facet ?  it isnt?
> >
> > 2017-03-05 1:32 GMT+01:00 Cristian Lorenzetto <
> cristian.lorenzetto@gmail.com
> >>:
> >
> >> Hi
> >> i might implement a performant solution for searching a tree node,
> parent
> >> of a node , children of a node.
> >>
> >> a simple idea is
> >>
> >> save the path to specific node
> >> and searching prefix/suffix...
> >>
> >>
> >> Is there a specific solution in the lucene libraries for doing it?
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: how to search a tree node in lucene?

Posted by Erick Erickson <er...@gmail.com>.
PathHeirarchyTokenizer?

On Sat, Mar 4, 2017 at 5:00 PM, Cristian Lorenzetto
<cr...@gmail.com> wrote:
> ah right ... facet ?  it isnt?
>
> 2017-03-05 1:32 GMT+01:00 Cristian Lorenzetto <cristian.lorenzetto@gmail.com
>>:
>
>> Hi
>> i might implement a performant solution for searching a tree node, parent
>> of a node , children of a node.
>>
>> a simple idea is
>>
>> save the path to specific node
>> and searching prefix/suffix...
>>
>>
>> Is there a specific solution in the lucene libraries for doing it?
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: how to search a tree node in lucene?

Posted by Cristian Lorenzetto <cr...@gmail.com>.
ah right ... facet ?  it isnt?

2017-03-05 1:32 GMT+01:00 Cristian Lorenzetto <cristian.lorenzetto@gmail.com
>:

> Hi
> i might implement a performant solution for searching a tree node, parent
> of a node , children of a node.
>
> a simple idea is
>
> save the path to specific node
> and searching prefix/suffix...
>
>
> Is there a specific solution in the lucene libraries for doing it?
>