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**&wt=json&indent=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...

<fieldType name="*text_general*" class="solr.TextField"
positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.*StandardTokenizerFactory*"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" />
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" />
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>

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

On Thu, Mar 17, 2016 at 11:28 PM, Alexandre Rafalovitch <arafa...@gmail.com>
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 <vishal....@gmail.com> 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
>

Reply via email to