Re: multiple analyzers for one field

2014-04-15 Thread Michael Sokolov
A blog post is a great idea, Alex! I think I should wait until I have a complete end-to-end implementation done before I write about it though, because I'd also like to include some tips about configuring the new suggesters with Solr (the documentation on the wiki hasn't quite caught up yet,

Re: multiple analyzers for one field

2014-04-15 Thread Alexandre Rafalovitch
Your call, though from experience thus sounds like either two or no blog posts. I certainly have killed a bunch of good articles by waiting for perfection:-) On 15/04/2014 7:01 pm, Michael Sokolov msoko...@safaribooksonline.com wrote: A blog post is a great idea, Alex! I think I should wait

Re: multiple analyzers for one field

2014-04-15 Thread Michael Sokolov
Ha! You were right. Thanks for the nudge; here's my post: http://blog.safariflow.com/2014/04/15/search-suggestions-with-solr-2/ there's code at http://github.com/safarijv/ifpress-solr-plugin cheers -Mike On 04/15/2014 08:18 AM, Alexandre Rafalovitch wrote: Your call, though from experience

Re: multiple analyzers for one field

2014-04-14 Thread Michael Sokolov
I lost the original thread; sorry for the new / repeated topic, but thought I would follow up to let y'all know that I ended up implementing Alex's idea to implement an UpdateRequestProcessor in order to apply different analysis to different fields when doing something analogous to copyFields.

Re: multiple analyzers for one field

2014-04-14 Thread Alexandre Rafalovitch
Hi Mike, Glad I was able to help. Good note about the PoolingReuseStrategy, I did not think of that either. Is there a blog post or a GitHub repository coming with more details on that? Sounds like something others may benefit from as well. Regards, Alex. P.s. If you don't have your own

Re: multiple analyzers for one field

2014-04-10 Thread Michael Sokolov
The lack of response to this question makes me think that either there is no good answer, or maybe the question was too obtuse. So I'll give it one more go with some more detail ... My main goal is to implement autocompletion with a mix of words and short phrases, where the words are drawn

Re: multiple analyzers for one field

2014-04-10 Thread Alexandre Rafalovitch
It's an interesting question. To start from, the copyField copies the source content, so there is no source-related tokenization description. Only the target's one. So, that approach is not suitable. Regarding the lookups/auto-complete. There has been a bunch of various implementations added

Re: multiple analyzers for one field

2014-04-10 Thread Trey Grainger
Hi Michael, It IS possible to utilize multiple Analyzers within a single field, but it's not a built in capability of Solr right now. I wrote something I called a MultiTextField which provides this capability, and you can see the code here:

Re: multiple analyzers for one field

2014-04-10 Thread Michael Sokolov
Yes, I see - I could essentially do the tokenization myself (or using some Analyzer chain) in an Update Processor. Yes I think that could work. Thanks, Alex! -Mike On 4/10/14 10:09 PM, Alexandre Rafalovitch wrote: It's an interesting question. To start from, the copyField copies the

Re: multiple analyzers for one field

2014-04-10 Thread Michael Sokolov
Thanks for you detailed answer, Trey! I guess it helps to have just written that book :) By the way - I am eager to get it on our platform (safariflow.com -- but I think it hasn't arrived from Manning yet). I had a half-baked idea about using a prefix like that. It did seem like it would be