Thanks Lance for clearing. One more Question: Is there a possibility of integrating boosting with payloads in LUCENE-2899 with solr?
Thanks in Advance On Mon, Jan 6, 2014 at 9:46 PM, rashi gandhi <gandhirash...@gmail.com>wrote: > Hi, > > Also i wanted know, > Is it possible to integrate wordnet with this analyzer? > I want to use wordnet as synonym expansion along with OpenNLP filters. > What are the changes required in solr schema.xml and solrconfig.xml? > > Thanks in Advance > > > On Mon, Jan 6, 2014 at 9:37 PM, rashi gandhi <gandhirash...@gmail.com>wrote: > >> Hi, >> >> >> >> I have applied OpenNLP (LUCENE 2899.patch) patch to SOLR-4.5.1 for nlp >> searching and it is working fine. >> >> Also I have designed an analyzer for this: >> >> <fieldType name="nlp_type" class="solr.TextField" >> positionIncrementGap="100"> >> >> <analyzer type="index"> >> >> <tokenizer class="solr.OpenNLPTokenizerFactory" >> sentenceModel="opennlp/en-test-sent.bin" >> tokenizerModel="opennlp/en-test-tokenizer.bin"/> >> >> <filter class="solr.StopFilterFactory" >> ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true"/> >> >> <filter class="solr.OpenNLPFilterFactory" >> posTaggerModel="opennlp/en-pos-maxent.bin"/> >> >> <filter class="solr.OpenNLPFilterFactory" >> nerTaggerModels="opennlp/en-ner-person.bin"/> >> >> <filter class="solr.OpenNLPFilterFactory" >> nerTaggerModels="opennlp/en-ner-location.bin"/> >> >> <filter >> class="solr.LowerCaseFilterFactory"/> >> >> <filter >> class="solr.SnowballPorterFilterFactory"/> >> >> </analyzer> >> >> <analyzer type="query"> >> >> <tokenizer class="solr.OpenNLPTokenizerFactory" >> sentenceModel="opennlp/en-test-sent.bin" tokenizerModel >> ="opennlp/en-test-tokenizer.bin"/> >> >> <filter class="solr.StopFilterFactory" >> ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true"/> >> >> <filter class="solr.OpenNLPFilterFactory" >> posTaggerModel="opennlp/en-pos-maxent.bin"/> >> >> <filter class="solr.OpenNLPFilterFactory" >> nerTaggerModels="opennlp/en-ner-person.bin"/> >> >> <filter class="solr.OpenNLPFilterFactory" >> nerTaggerModels="opennlp/en-ner-location.bin"/> >> >> <filter >> class="solr.LowerCaseFilterFactory"/> >> >> <filter >> class="solr.SnowballPorterFilterFactory"/> >> >> </analyzer> >> >> </fieldType> >> >> >> I am able to find that posTaggerModel is performing tagging in the >> phrases and add the payloads. ( but iam not able to analyze it) >> >> My Question is: >> Can i search a phrase giving high boost to NOUN then VERB ? >> For example: if iam searching "sitting on blanket" , so i want to give >> high boost to NOUN term first then VERB, that are tagged by OpenNLP. >> How can i use payloads for boosting? >> What are the changes required in schema.xml? >> >> Please provide me some pointers to move ahead >> >> Thanks in advance >> >> >> >> >