lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit Aggarwal <amit.aggarwa...@gmail.com>
Subject Re: /select with 'q' parameter does not work
Date Wed, 11 Dec 2013 09:47:59 GMT
Because in your solrconfig ... Against /select ... DirectUpdateHandler is
mentioned . It should be solr.searchhanlder ..
On 11-Dec-2013 3:11 PM, "Nutan" <nutanshinde1992@gmail.com> wrote:

> I have indexed 9 docs.
> this my* schema.xml*
>
> <schema  name="documents">
> <fields>
>
> <field name="doc_id" type="uuid" indexed="true" stored="true" default="NEW"
> multiValued="false"/>
> <field name="id" type="integer" indexed="true" stored="true"
> required="true"
> multiValued="false"/>
> <field name="contents" type="text" indexed="true" stored="true"
> multiValued="false"/>
> <field name="author" type="title_text" indexed="true" stored="true"
> multiValued="true"/>
> <field name="title" type="title_text" indexed="true" stored="true"/>
> <field name="_version_" type="long" indexed="true" stored="true"
> multiValued="false"/>
> <copyfield source="id" dest="text" />
> <dynamicField name="ignored_*" type="text" indexed="false" stored="false"
> multiValued="true"/>
>
> <field name="description_ngram" type="text_ngram" indexed="true"
> stored="false" />
> <copyField source="contents" dest="description_ngram" />
> </fields>
>
> <types>
>
> <fieldType name="text_ngram" class="solr.TextField"
> positionIncrementGap="100" >
> <analyzer>
> <tokenizer class="solr.StandardTokenizerFactory"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> <filter class="solr.NGramFilterFactory" minGramSize="2" maxGramSize="2" />
> </analyzer>
> </fieldType>
>
>
> <fieldType name="uuid" class="solr.UUIDField" indexed="true" />
> <fieldtype name="ignored" stored="false" indexed="false"
> class="solr.StrField" />
> <fieldType name="integer" class="solr.IntField"  omitNorms="true"
> positionIncrementGap="0"/>
> <fieldType name="long" class="solr.LongField" />
> <fieldType name="string" class="solr.StrField"  />
> <fieldType name="title_text" class="solr.TextField">
> <analyzer>
> <tokenizer class="solr.KeywordTokenizerFactory"/>
> <filter class="solr.LowerCaseFilterFactory"/>
>
> </analyzer>
> </fieldType>
>
>
> <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
> <analyzer type="index">
> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
> <filter class="solr.LowerCaseFilterFactory" />
> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
> splitOnCaseChange="1" generateNumberParts="1" splitOnNumerics="1" />
> <filter class="solr.StemmerOverrideFilterFactory"
> dictionary="my_stemmer.txt" />
> <filter class="solr.SnowballPorterFilterFactory" />
> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
> ignoreCase="true" expand="false" />
> <filter class="solr.EnglishMinimalStemFilterFactory" />
> <filter class="solr.NGramFilterFactory" minGramSize="2" maxGramSize="2" />
> </analyzer>
> <analyzer type="query">
> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
> splitOnCaseChange="1" generateNumberParts="1" splitOnNumerics="1" />
> <filter class="solr.StemmerOverrideFilterFactory"
> dictionary="my_stemmer.txt" />
> <filter class="solr.SnowballPorterFilterFactory" />
> <filter class="solr.EnglishMinimalStemFilterFactory" />
> </analyzer>
> </fieldType>
> </types>
> <defaultSearchField>contents</defaultSearchField>
> <uniqueKey>id</uniqueKey>
> </schema>
>
> *solrconfig.xml* is:
>
> <?xml version="1.0" encoding="UTF-8" ?>
>
> <config>
>
>   <luceneMatchVersion>LUCENE_42</luceneMatchVersion>
>
>   <dataDir>${solr.document.data.dir:}</dataDir>
>
>   <requestDispatcher handleSelect="false" >
>   <requestParsers enableRemoteStreaming="true"
> multipartUploadLimitInKB="8500" />
>     </requestDispatcher>
>
>    <lib dir="../lib"  regex=".*\.jar" />
>
>
>   <requestHandler name="standard" class="solr.StandardRequestHandler"
> default="true">
>
>      <lst name="defaults">
>        <str name="echoParams">explicit</str>
>        <int name="rows">20</int>
>        <str name="fl">*</str>
>            <str name="df">id</str>
>        <str name="version">2.1</str>
>      </lst>
>   </requestHandler>
>
>   <updateHandler name="/select" class="solr.DirectUpdateHandler2" >
>   <updateLog>
>     <str name="dir">${solr.document.data.dir:}</str>
>   </updateLog>
>   </updateHandler>
>
>  <requestHandler name="/analysis/field" startup="lazy"
> class="solr.FieldAnalysisRequestHandler" />
>  <requestHandler name="/admin/" class="solr.admin.AdminHandlers" />
>  <requestHandler name="/update" class="solr.UpdateRequestHandler"/>
> <requestHandler name="/select" class="solr.SearchHandler">
>      <lst name="defaults">
>        <str name="echoParams">explicit</str>
>        <int name="rows">10</int>
>        <str name="df">contents</str>
>      </lst>
> </requestHandler>
> </config>
> (i have also added extract,analysis,elevator,promotion,spell,suggester
> components in solrconfig but i guess that wont select query)
> When i run this:
> http://localhost:8080/solr/document/select?q=*:*   --> all the 9 docs are
> replaced
>
> but when i run this:
> http://localhost:8080/solr/document/select?q=programmer or anything in
> place
> of programmer --> output shows numfound=0 evenif there are about 34 times
> programmer has appeared in docs.
>
> Initially it worked fine,but not now.
> Why is it so?
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/select-with-q-parameter-does-not-work-tp4106099.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message