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.

eZ debug

Timing: Jan 18 2025 05:16:35
Script start
Timing: Jan 18 2025 05:16:35
Module start 'layout'
Timing: Jan 18 2025 05:16:35
Module start 'content'
Timing: Jan 18 2025 05:16:36
Module end 'content'
Timing: Jan 18 2025 05:16:36
Script end

Main resources:

Total runtime0.8184 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 587.8984152.6094
Module start 'layout' 0.00870.0043 740.507839.4219
Module start 'content' 0.01300.8039 779.9297573.3125
Module end 'content' 0.81690.0015 1,353.242216.1875
Script end 0.8184  1,369.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4269160.0002
Check MTime0.00130.1647160.0001
Mysql Total
Database connection0.00130.162910.0013
Mysqli_queries0.741790.6288630.0118
Looping result0.00100.1180610.0000
Template Total0.777795.020.3889
Template load0.00270.326020.0013
Template processing0.775094.701720.3875
Template load and register function0.00020.019310.0002
states
state_id_array0.00140.171310.0014
state_identifier_array0.00200.239420.0010
Override
Cache load0.00220.2694410.0001
Sytem overhead
Fetch class attribute can translate value0.00200.245420.0010
Fetch class attribute name0.00150.185270.0002
XML
Image XML parsing0.00160.200620.0008
class_abstraction
Instantiating content class attribute0.00000.0029100.0000
General
dbfile0.00130.1584230.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs