SolR indexing problem

Author Message

Jean-Yves Zinsou

Wednesday 23 February 2011 9:05:49 am

Hi all,

I use ezcompenents Search to add items to a dedicated core.

When i update the index, with data, it is well indexed i can find data in the solr admin interface using in the query field :

"

article_code_t:tu1.TF38

"

bu i get no results when searching

tu1.TF38

??

Anyone has an idea ?

thanx !

Jey

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Ivo Lukac

Wednesday 23 February 2011 11:49:06 am

Could be that dot (.) is treated like token delimiter while searching. Do you get the article when searching for "tu1" or "TF38"?

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Jean-Yves Zinsou

Wednesday 23 February 2011 11:49:17 pm

Got it guys,

So for those who encounter the same problem...

I used the defaultSearchField parameter to specify which field to be used when not explicitly written in the query

<!-- field for the QueryParser to use when an explicit fieldname is absent -->
<defaultSearchField>ezf_df_text</defaultSearchField>

I then used the copy fonctionnality

<copyField source="*_k" dest="ezf_df_text"/>
<copyField source="*_t" dest="ezf_df_text"/>
<copyField source="*_s" dest="ezf_df_text"/>

So that my fields are copied to this field and found easily

Jey

PS ; thanx Ivo, but that 's not it, I have the same problem with any kind of text even whitout dot inside it

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Ivo Lukac

Thursday 24 February 2011 5:10:29 am

?!?

But these lines are in fact standard in ezfind schema.xml:

<copyField source="*_lk" dest="ezf_df_text"/>    
<copyField source="*_k" dest="ezf_df_text"/>    
<copyField source="*_t" dest="ezf_df_text"/>    
<copyField source="*_s" dest="ezf_df_text"/>

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Jean-Yves Zinsou

Thursday 24 February 2011 6:17:55 am

You are absolutely right,

but i had to create a dedicated core containing data that does not come from ezpublish, so i had to use a standard solR schema, that was therefore not tweaked by ez!!

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.