Ok, 

the very short question is:
Is there a way to submit the analyzer response so that solr already knows
what to do with that response? (that is, which field are to be treated as
payloads, which are tokens, etc...)


Chris Hostetter-3 wrote:
> 
> can you explain a bit more about what you goal is here?  what info are you 
> planning on extracting?  what do you intend to change between the info you 
> get back in the first request and the info you want to send in the second 
> request?
> 

I plan to add some payloads to some terms between request#1 and request#2.


Chris Hostetter-3 wrote:
> 
> your analyziers and whatnot for request#1 would be exactly what you're use 
> to, but for request#2 you'd need to specify an analyzer that would let you 
> specify, in the field value, the details about the term and position, and 
> offsets, and payloads and what not ... the 
> DelimitedPayloadTokenFilterFactory / DelimitedPayloadTokenFilter can help 
> with some of that, but not all -- you'd either need your own custom 
> analyzer or custom FieldType or something depending on teh specific 
> changes you want to make.
> 
> Frankly though i really believe you are going about this backwards -- if 
> you want to manipulate the Tokenstream after analysis but before indexing, 
> then why not implement this custom logic thta you want in a TokenFilter 
> and use it in the last TokenFilterFactory you have for your analyzer?
> 
> 

Yeah, I thought about that. I really wanted to know if there weren't an
already implemented way to do that to avoid reinventing the wheel.

It would be cool if I were able to send info to solr formatted in a way like
I imagined in my last mail, so that a call to any Tokenizer or TokenFilter
wouldn't be necessary. It would have been like using an empty analyzer but
still retaining the various token information.

Thank you!

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Feed-index-with-analyzer-output-tp3131771p3140460.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to