Re: indexing Free-form text description

2016-03-19 Thread Vis Sw
Thanks a lot Erick and Alex...

I am going through the documents and blogs... thanks for the pointers.

Here is what I tried starting with "text_general"...
a) Looks like it breaks on whitespace for e.g.
for project_collaborator values as "myproject122_USC Dan Forrester ",
"myproject123_USC follow-up John "
If I query...
http://localhost:8081/solr/mycollection/select?q=
*project_collaborator:*Dan%20Fo**=json=true

It returns records with "*Dan*" as well as "fo*" Is it possible to
ignore whitespace and "Dan Fo" can be considered as single term...















b) I also tried replacing "StandardTokenizerFactory" with
"KeywordTokenizerFactory" but results are not accurate.

On Thu, Mar 17, 2016 at 11:28 PM, Alexandre Rafalovitch 
wrote:

> Well, Solr ships with nearly 10 examples. So, if you go through them,
> you will know quite a lot. This article (mine) may help you to
> navigate them:
> http://blog.outerthoughts.com/2015/11/oh-solr-home-where-art-thou/
>
> More specifically, as Erick said, your question is too generic. One
> step forward would be to think NOT about the indexing but about the
> search. What you want to search, how you want to find it, what
> granularity you want the information to come back at. Then, you index
> your text in the way to give you that. You will know what specific
> questions to ask then.
>
> Regards,
> Alex.
> 
> Newsletter and resources for Solr beginners and intermediates:
> http://www.solr-start.com/
>
>
> On 18 March 2016 at 04:08, Vis Sw  wrote:
> > Hi,
> >
> > I am trying to understand the best way to index and search "free text
> > field" e.g. notes or description...
> >
> > Please suggest what will be the best field type, tokenizer, filter... to
> > query Free-form text description of a field.
> >
> > Any example will be great...
> >
> > Regards
>


Re: indexing Free-form text description

2016-03-19 Thread Alexandre Rafalovitch
Well, Solr ships with nearly 10 examples. So, if you go through them,
you will know quite a lot. This article (mine) may help you to
navigate them: 
http://blog.outerthoughts.com/2015/11/oh-solr-home-where-art-thou/

More specifically, as Erick said, your question is too generic. One
step forward would be to think NOT about the indexing but about the
search. What you want to search, how you want to find it, what
granularity you want the information to come back at. Then, you index
your text in the way to give you that. You will know what specific
questions to ask then.

Regards,
Alex.

Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 18 March 2016 at 04:08, Vis Sw  wrote:
> Hi,
>
> I am trying to understand the best way to index and search "free text
> field" e.g. notes or description...
>
> Please suggest what will be the best field type, tokenizer, filter... to
> query Free-form text description of a field.
>
> Any example will be great...
>
> Regards


Re: indexing Free-form text description

2016-03-19 Thread Erick Erickson
This question is way too general to answer in any detail, so
I'd just start with the text_general fieldType in any of the stock
schema.xml files.

It would be well for you to get familiar with the admin/analysis page, as
you'll
have a zillion questions about what each change you make to that fieldType
really does.

Best,
Erick


On Thu, Mar 17, 2016 at 10:08 AM, Vis Sw  wrote:

> Hi,
>
> I am trying to understand the best way to index and search "free text
> field" e.g. notes or description...
>
> Please suggest what will be the best field type, tokenizer, filter... to
> query Free-form text description of a field.
>
> Any example will be great...
>
> Regards
>


indexing Free-form text description

2016-03-19 Thread Vis Sw
Hi,

I am trying to understand the best way to index and search "free text
field" e.g. notes or description...

Please suggest what will be the best field type, tokenizer, filter... to
query Free-form text description of a field.

Any example will be great...

Regards