Using copyFields

2019-03-28 Thread Sharmadha
Following solr tutorial ,
https://lucene.apache.org/solr/guide/7_7/solr-tutorial.html#create-a-catchall-copy-field
,without adding copyField with src = "*" and dest = "_text_" , I created my
own field named "cfield1" of type text_general and added a copyField with
src = "*" and dest = "cfield1". Posted the films data. After this , on
typing "comedy" in query field , the query doesn't fetch results.

What is special about "_text_" field and what is that specific definition ?
I created cfield same as _text_ (i.e) stored=false , index = true ,
multivalued = true.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Using copyFields

2019-03-28 Thread Sharmadha
As mentioned in
https://lucene.apache.org/solr/guide/7_7/solr-tutorial.html#create-a-catchall-copy-field
, instead of having a copyField on src="*" ,dest ="_text_" , I added a
copyField with src="*" ,dest ="cfield".

when I did copyField on src="*" ,dest ="_text_" , on firing query=comedy ,
it listed all docs wherever there was comedy.

But when I did copyField on src="*" ,dest ="cfield" ,  on firing
query=comedy  , I don't see anything fetched. numfound is 0.

Can you please let me know what I am missing ?


>> What do you mean does not fetch results? It returns the found documents,
>> but not the text content? In this case you need to store the field. 
 numfound is 0. No docs are returned.

>> Is comedy a stop word defined by you? 
No , its just a text in the document.





--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Using copyFields

2019-03-28 Thread Sharmadha
Thanks. Adding default field in solrconfig.xml worked.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


genre_str field in Solr's official tutorial on faceting

2019-04-27 Thread Sharmadha
Following
https://lucene.apache.org/solr/guide/7_7/solr-tutorial.html#field-facets , I
see in the documents , there is only genre field. In the example for
faceting , which filed do they refer by "genre_str" ? Are genre and
genre_str the same ? But I see different result when I facet on them. 

Kinldy help If I am missing something basic.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html