Elizabeth,
out of curiousity, could we know what you are trying to solve with that
complex way of tokenisation ?
Solr is really good in storing positions along with token, so I am curious
to know why your are mixing the things up.

Cheers

On 8 March 2016 at 10:08, elisabeth benoit <elisaelisael...@gmail.com>
wrote:

> Thanks for your answer Emir,
>
> I'll check that out.
>
> Best regards,
> Elisabeth
>
> 2016-03-08 10:24 GMT+01:00 Emir Arnautovic <emir.arnauto...@sematext.com>:
>
> > Hi Elisabeth,
> > I don't think there is such token filter, so you would have to create
> your
> > own token filter that takes token and emits ngram token of specific
> length.
> > It should not be too hard to create such filter - you can take a look how
> > nagram filter is coded - yours should be simpler than that.
> >
> > Regards,
> > Emir
> >
> >
> > On 08.03.2016 08:52, elisabeth benoit wrote:
> >
> >> Hello,
> >>
> >> I'm using solr 4.10.1. I'd like to index words with ngrams of fix lenght
> >> with a position in the end.
> >>
> >> For instance, with fix lenght 3, Amsterdam would be something like:
> >>
> >>
> >> a0 (two spaces added at beginning)
> >> am1
> >> ams2
> >> mst3
> >> ste4
> >> ter5
> >> erd6
> >> rda7
> >> dam8
> >> am9 (one more space in the end)
> >>
> >> The number at the end being the position.
> >>
> >> Does anyone have a clue how to achieve this?
> >>
> >> Best regards,
> >> Elisabeth
> >>
> >>
> > --
> > Monitoring * Alerting * Anomaly Detection * Centralized Log Management
> > Solr & Elasticsearch Support * http://sematext.com/
> >
> >
>



-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Reply via email to