Re: Basic SOLR help needed

2012-02-19 Thread tamanjit.bin...@yahoo.co.in
Hi,
I guess the behavior is because of the field type of the field INST_NAME.
Try changing its type to string for getting the desired results.
text_en_splitting splits on whitespace.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Basic-SOLR-help-needed-tp3759855p3759866.html
Sent from the Solr - User mailing list archive at Nabble.com.


Basic SOLR help needed

2012-02-19 Thread jwgildea
I have created a SOLR DB that appears to be working in general.   Here are
the fields from my schema:
field name=PID type=string indexed=TRUE stored=TRUE required=TRUE
/
field name=INST_NAME type=text_en_splitting indexed=TRUE
stored=TRUE required=TRUE /
field name=INST_TYPE type=text_general indexed=TRUE stored=TRUE /
field name=MSTREET type=text_general indexed=TRUE stored=TRUE /
field name=MCITY type=text_general indexed=TRUE stored=TRUE /
field name=MSTATE type=text_general indexed=TRUE stored=TRUE /
field name=MZIPCODE type=string indexed=TRUE stored=TRUE /
field name=PSTREET type=text_general indexed=TRUE stored=TRUE /
field name=PCITY type=text_general indexed=TRUE stored=TRUE /
field name=PSTATE type=text_general indexed=TRUE stored=TRUE /
field name=PZIPCODE type=string indexed=TRUE stored=TRUE /
field name=PARENTPID type=string indexed=TRUE stored=TRUE /
field name=PARENT_INST type=text_en_splitting indexed=TRUE
stored=TRUE /
field name=GEO_LAT type=tdouble indexed=TRUE stored=TRUE /
field name=GEO_LONG type=tdouble indexed=TRUE stored=TRUE /
field name=LAMEMBERID type=string indexed=TRUE stored=TRUE /
field name=CUSTOMER_ID type=string indexed=TRUE stored=TRUE /

I loaded 2 documents

When I do a query using the Admin tool:
INST_NAME:KENTUCKY TECH PADUCAH  (There is a docment in the that meets this
query exactly)

It appears to only look at the first keyword NATIONAL

If I break the query up:
INST_NAME:NATIONAL 
INST_NAME:PARK 
INST_NAME:COMMUNITY 
INST_NAME:COLLEGE

The query works as expected.  The matching doc has a score of 7.996526, and
there are a bunch of similar matches with lower scores

Help.  I'm sure it's something basic.

Thanks





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Basic-SOLR-help-needed-tp3759855p3759855.html
Sent from the Solr - User mailing list archive at Nabble.com.


RE: Basic SOLR help needed

2012-02-19 Thread jwgildea
I want to be able to search against INST_NAME using keywords, stemming,
synonyms, etc...  I think I need to split on white space.  Don't I?
Thanks for the quick response!

 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Basic-SOLR-help-needed-tp3759855p3759998.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Basic SOLR help needed

2012-02-19 Thread pravesh
When I do a query using the Admin tool:
INST_NAME:KENTUCKY TECH PADUCAH  (There is a docment in the db that meets
this INST_NAME exactly) 

Try using this way:
INST_NAME:(KENTUCKY TECH PADUCAH)
This way all the 3 terms would be searched in the field INST_NAME, otherwise
only the first term KENTUCKY is searched in the INST_NAME and rest terms
like TECH and PADUCAH are searched in your default search field

Regds
Pravesh

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Basic-SOLR-help-needed-tp3759855p375.html
Sent from the Solr - User mailing list archive at Nabble.com.