SlideShare a Scribd company logo
Samuel Solís || @estoyausente
Querying Solr
Samuel Solís || @estoyausente
¿Quién **** soy?
Samuel Solís || @estoyausente
Samuel Solís || @estoyausente
¿Qué es Solr?
Samuel Solís || @estoyausente
Solr y Drupal
Samuel Solís || @estoyausente
Samuel Solís || @estoyausente
Samuel Solís || @estoyausente
Mi problema: D6
Samuel Solís || @estoyausente
Samuel Solís || @estoyausente
Más allá del módulo
Samuel Solís || @estoyausente
Hacer una query
Samuel Solís || @estoyausente
http://searchengine.local:8983/solr/search/select/?wt=json&q=
vino&rows=30&defType=edismax&qf=ts_title+terms_ts_title+term
s_ts_description+tws_producer_name_fulltext+tws_product_type
+ss_variedad_principal+tws_do_fulltext+ss_sub_product_type+ss
_region+tws_country_fulltext+ts_maridaje_keywords&start=0&m
m=1&mm.autoRelax=true&ps=1&bf=if(gt(its_rating_count,4),fts_r
ating_average,0)&spellcheck=on&spellcheck.q=vino&fq=ss_langc
ode:es&fq=bs_on_sale:true&facet=on&facet.mincount=1&facet.fi
eld=ss_sub_product_type&facet.field=ss_variedad_principal&face
t.field=ss_country&facet.field=ss_do&facet.field=ss_producer_na
me&facet.field=ss_format_type
Samuel Solís || @estoyausente
Samuel Solís || @estoyausente
wt=json // Tipo de salida (no necesario en Solr > 8.0)
q=vino // Término a buscar
rows=30 // Nº de filas a retornar
defType=edismax // Tipo de query parser
start=0 // paginador
mm=1 // Minimal match
Algunas reglas generales.
Samuel Solís || @estoyausente
Query fields
qf=ts_title^9+terms_ts_title+terms_ts_description+tws_pr
oducer_name_fulltext+tws_product_type+ss_variedad_princi
pal+tws_do_fulltext^5+ss_sub_product_type+ss_region+tws_
country_fulltext+ts_maridaje_keywords
Samuel Solís || @estoyausente
Boost
bf=if(gt(its_rating_count,4),fts_rating_average,0)
Samuel Solís || @estoyausente
Spellcheck
spellcheck=on
spellcheck.q=vino
Samuel Solís || @estoyausente
Filtros
fq=ss_langcode:es
fq=bs_on_sale:true
Samuel Solís || @estoyausente
Facets
facet=on
facet.mincount=1
facet.field=ss_sub_product_type
facet.field=ss_variedad_principal
Samuel Solís || @estoyausente
Depuración de errores
Samuel Solís || @estoyausente
Tres preguntas a resolver
¿Por qué algo sale?
¿Por qué sale donde sale?
¿Por qué no sale?
Samuel Solís || @estoyausente
1
¿Por qué algo sale?
¿Por qué sale donde sale?
Samuel Solís || @estoyausente
debug
debug=on
Samuel Solís || @estoyausente
"4yh6ae-search_index-entity:bb_product/1062611:es": "n12.092266 = sum of:n 8.292266 = max plus 0.01
times others of:n 5.5033407 = weight(terms_ts_title:barahonda in 2397) [SchemaSimilarity], result of:n
5.5033407 = score(doc=2397,freq=1.0 = termFreq=1.0n), product of:n 5.788076 = idf, computed as log(1
+ (docCount - docFreq + 0.5) / (docFreq + 0.5)) from:n 153.0 = docFreqn 50099.0 = docCountn
0.9508066 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength))
from:n 1.0 = termFreq=1.0n 1.2 = parameter k1n 0.75 = parameter bn 3.5509093 =
avgFieldLengthn 4.0 = fieldLengthn 8.121311 = weight(terms_ts_description:barahonda in 2397)
[SchemaSimilarity], result of:n 8.121311 = score(doc=2397,freq=2.0 = termFreq=2.0n), product of:n
5.7482705 = idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from:n 79.0 =
docFreqn 24934.0 = docCountn 1.4128269 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 -
b + b * fieldLength / avgFieldLength)) from:n 2.0 = termFreq=2.0n 1.2 = parameter k1n 0.75
= parameter bn 45.26947 = avgFieldLengthn 40.96 = fieldLengthn 5.419983 =
weight(tws_producer_name_fulltext:barahonda in 2397) [SchemaSimilarity], result of:n 5.419983 =
score(doc=2397,freq=1.0 = termFreq=1.0n), product of:n 5.419983 = idf, computed as log(1 + (docCount
- docFreq + 0.5) / (docFreq + 0.5)) from:n 216.0 = docFreqn 48901.0 = docCountn 1.0 =
tfNorm, computed as (freq * (k1 + 1)) / (freq + k1) from:n 1.0 = termFreq=1.0n 1.2 = parameter
k1n 0.0 = parameter b (norms omitted for field)n 6.1721554 = weight(ts_title:barahonda in 2397)
[SchemaSimilarity], result of:n 6.1721554 = score(doc=2397,freq=1.0 = termFreq=1.0n), product of:n
5.788255 = idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from:n 153.0 =
docFreqn 50108.0 = docCountn 1.066324 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 -
b + b * fieldLength / avgFieldLength)) from:n 1.0 = termFreq=1.0n 1.2 = parameter k1n 0.75
= parameter bn 4.717211 = avgFieldLengthn 4.0 = fieldLengthn 3.8 =
FunctionQuery(if(gt(long(its_rating_count),const(4)),float(fts_rating_average),const(0))), product of:n 3.8 =
if(gt(long(its_rating_count)=19,const(4)),float(fts_rating_average)=3.8,const(0))n 1.0 = boostn 1.0 =
queryNormn",
Samuel Solís || @estoyausente
Samuel Solís || @estoyausente
60.223747 = sum of:
56.423748 = max plus 0.01 times others of:[matchs de
campos]
3.8 = [boots general]
Suma final
TIE param
Samuel Solís || @estoyausente
49.530067 = weight(terms_ts_title:barahonda in 2397)
[SchemaSimilarity], result of:
49.530067 = score(doc=2397,freq=1.0 = termFreq=1.0), product of:
9.0 = boost
5.788076 = idf
0.9508066 = tfNorm
Suma por campo
Inverse document frequency
= log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)
Normalized term frequency
(freq * (k1 + 1)) / (freq + k1 * (1 - b + b *
fieldLength / avgFieldLength))
Boost forzado
Samuel Solís || @estoyausente
Extra boost
3.8 = product of:
3.8 =
if(gt(long(its_rating_count)=19,const(4)),float(fts_rating
_average)=3.8,const(0))
1.0 = boost
Samuel Solís || @estoyausente
2
¿Por qué no sale?
Samuel Solís || @estoyausente
Samuel Solís || @estoyausente
Samuel Solís || @estoyausente
Ya casi hemos acabado
Samuel Solís || @estoyausente
solrconfig.yml
Samuel Solís || @estoyausente
RequestHandlers
<requestHandler name="/suggest" class="solr.SearchHandler">
<lst name="defaults">
<str name="suggest">true</str>
<str name="suggest.dictionary">blendedSuggester</str>
<str name="suggest.count">15</str>
</lst>
<arr name="components">
<str>suggest</str>
</arr>
</requestHandler>
Samuel Solís || @estoyausente
Search
Component
<searchComponent name="suggest" class="solr.SuggestComponent">
<lst name="suggester">
<str name="name">blendedSuggester</str>
<str name="lookupImpl">BlendedInfixLookupFactory</str>
<str name="indexPath">blended_suggestions</str>
<str name="field">name_autocomplete</str>
<str
name="dictionaryImpl">DocumentExpressionDictionaryFactory</str>
<str name="weightExpression">((its_top_ventas * 2) +
its_mejor_valorados)</str>
<str name="sortField">its_top_ventas</str>
<str name="suggestAnalyzerFieldType">text</str>
<str name="buildOnStartup">false</str>
<str name="buildOnCommit">false</str>
</lst>
</searchComponent>
Samuel Solís || @estoyausente
Recap
Samuel Solís || @estoyausente
Samuel Solís || @estoyausente
La página de gracias de bodeboca

More Related Content

What's hot

Numerical analysis
Numerical analysisNumerical analysis
Numerical analysis
Vishal Singh
 

What's hot (20)

C++ TUTORIAL 9
C++ TUTORIAL 9C++ TUTORIAL 9
C++ TUTORIAL 9
 
C++ TUTORIAL 7
C++ TUTORIAL 7C++ TUTORIAL 7
C++ TUTORIAL 7
 
C++ TUTORIAL 1
C++ TUTORIAL 1C++ TUTORIAL 1
C++ TUTORIAL 1
 
Assignment on Numerical Method C Code
Assignment on Numerical Method C CodeAssignment on Numerical Method C Code
Assignment on Numerical Method C Code
 
Matlab file
Matlab file Matlab file
Matlab file
 
Programming with OpenGL
Programming with OpenGLProgramming with OpenGL
Programming with OpenGL
 
New presentation oop
New presentation oopNew presentation oop
New presentation oop
 
oop Lecture 4
oop Lecture 4oop Lecture 4
oop Lecture 4
 
Array
ArrayArray
Array
 
Cpp programs
Cpp programsCpp programs
Cpp programs
 
Comparison GUM versus GUM+1
Comparison GUM  versus GUM+1Comparison GUM  versus GUM+1
Comparison GUM versus GUM+1
 
Numerical analysis
Numerical analysisNumerical analysis
Numerical analysis
 
Maths 301 key_sem_1_2007_2008
Maths 301 key_sem_1_2007_2008Maths 301 key_sem_1_2007_2008
Maths 301 key_sem_1_2007_2008
 
Computer graphics
Computer graphics   Computer graphics
Computer graphics
 
C++ Programming - 14th Study
C++ Programming - 14th StudyC++ Programming - 14th Study
C++ Programming - 14th Study
 
Computer Graphics Lab File C Programs
Computer Graphics Lab File C ProgramsComputer Graphics Lab File C Programs
Computer Graphics Lab File C Programs
 
VTU Network lab programs
VTU Network lab   programsVTU Network lab   programs
VTU Network lab programs
 
Computer graphics lab report with code in cpp
Computer graphics lab report with code in cppComputer graphics lab report with code in cpp
Computer graphics lab report with code in cpp
 
Logic Design - Chapter 3: Boolean Algebra
Logic Design - Chapter 3: Boolean AlgebraLogic Design - Chapter 3: Boolean Algebra
Logic Design - Chapter 3: Boolean Algebra
 
Lab 1 izz
Lab 1 izzLab 1 izz
Lab 1 izz
 

Similar to Querying solr

Similar to Querying solr (20)

The Ring programming language version 1.6 book - Part 9 of 189
The Ring programming language version 1.6 book - Part 9 of 189The Ring programming language version 1.6 book - Part 9 of 189
The Ring programming language version 1.6 book - Part 9 of 189
 
Art and Science Come Together When Mastering Relevance Ranking - Tom Burgmans...
Art and Science Come Together When Mastering Relevance Ranking - Tom Burgmans...Art and Science Come Together When Mastering Relevance Ranking - Tom Burgmans...
Art and Science Come Together When Mastering Relevance Ranking - Tom Burgmans...
 
The Ring programming language version 1.7 book - Part 10 of 196
The Ring programming language version 1.7 book - Part 10 of 196The Ring programming language version 1.7 book - Part 10 of 196
The Ring programming language version 1.7 book - Part 10 of 196
 
第13回数学カフェ「素数!!」二次会 LT資料「乱数!!」
第13回数学カフェ「素数!!」二次会 LT資料「乱数!!」第13回数学カフェ「素数!!」二次会 LT資料「乱数!!」
第13回数学カフェ「素数!!」二次会 LT資料「乱数!!」
 
Go Says WAT?
Go Says WAT?Go Says WAT?
Go Says WAT?
 
How to tune a query - ODTUG 2012
How to tune a query - ODTUG 2012How to tune a query - ODTUG 2012
How to tune a query - ODTUG 2012
 
R getting spatial
R getting spatialR getting spatial
R getting spatial
 
Ch3
Ch3Ch3
Ch3
 
10. R getting spatial
10.  R getting spatial10.  R getting spatial
10. R getting spatial
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the code
 
JavaScript Refactoring
JavaScript RefactoringJavaScript Refactoring
JavaScript Refactoring
 
Assignment 5.2.pdf
Assignment 5.2.pdfAssignment 5.2.pdf
Assignment 5.2.pdf
 
Code optimization
Code optimization Code optimization
Code optimization
 
Code optimization
Code optimization Code optimization
Code optimization
 
Learn Matlab
Learn MatlabLearn Matlab
Learn Matlab
 
Regression and Classification with R
Regression and Classification with RRegression and Classification with R
Regression and Classification with R
 
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the code
 
Pdxpugday2010 pg90
Pdxpugday2010 pg90Pdxpugday2010 pg90
Pdxpugday2010 pg90
 
Econometric Analysis 8th Edition Greene Solutions Manual
Econometric Analysis 8th Edition Greene Solutions ManualEconometric Analysis 8th Edition Greene Solutions Manual
Econometric Analysis 8th Edition Greene Solutions Manual
 

More from Samuel Solís Fuentes

More from Samuel Solís Fuentes (17)

El necesario mal del Legacy Code (Drupal Iberia 2024)
El necesario mal del Legacy Code (Drupal Iberia 2024)El necesario mal del Legacy Code (Drupal Iberia 2024)
El necesario mal del Legacy Code (Drupal Iberia 2024)
 
De managers y developers
De managers y developersDe managers y developers
De managers y developers
 
Hábitos y consejos para sobrevivir a un trabajo sedentario
Hábitos y consejos para sobrevivir a un trabajo sedentarioHábitos y consejos para sobrevivir a un trabajo sedentario
Hábitos y consejos para sobrevivir a un trabajo sedentario
 
Drupal intro for Symfony developers
Drupal intro for Symfony developersDrupal intro for Symfony developers
Drupal intro for Symfony developers
 
D8 Form api
D8 Form apiD8 Form api
D8 Form api
 
Mejorar tu código mejorando tu comunicación
Mejorar tu código mejorando tu comunicaciónMejorar tu código mejorando tu comunicación
Mejorar tu código mejorando tu comunicación
 
Custom entities in d8
Custom entities in d8Custom entities in d8
Custom entities in d8
 
Drupal8 simplepage v2
Drupal8 simplepage v2Drupal8 simplepage v2
Drupal8 simplepage v2
 
Drupal 8 simple page: Mi primer proyecto en Drupal 8.
Drupal 8 simple page: Mi primer proyecto en Drupal 8.Drupal 8 simple page: Mi primer proyecto en Drupal 8.
Drupal 8 simple page: Mi primer proyecto en Drupal 8.
 
Como arreglar este desastre
Como arreglar este desastreComo arreglar este desastre
Como arreglar este desastre
 
Drupal y rails. Nuestra experiencia
Drupal y rails. Nuestra experienciaDrupal y rails. Nuestra experiencia
Drupal y rails. Nuestra experiencia
 
Mejorar tu código hablando con el cliente
Mejorar tu código hablando con el clienteMejorar tu código hablando con el cliente
Mejorar tu código hablando con el cliente
 
Taller de introducción al desarrollo de módulos
Taller de introducción al desarrollo de módulosTaller de introducción al desarrollo de módulos
Taller de introducción al desarrollo de módulos
 
Más limpio que un jaspe.
Más limpio que un jaspe.Más limpio que un jaspe.
Más limpio que un jaspe.
 
Drupal as a framework
Drupal as a frameworkDrupal as a framework
Drupal as a framework
 
Arquitectura de información en drupal
Arquitectura de información en drupalArquitectura de información en drupal
Arquitectura de información en drupal
 
Drupal para desarrolladores
Drupal para desarrolladoresDrupal para desarrolladores
Drupal para desarrolladores
 

Recently uploaded

AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
Alluxio, Inc.
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 

Recently uploaded (20)

AI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in MichelangeloAI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in Michelangelo
 
Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
Agnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in KrakówAgnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in Kraków
 
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
 
GraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysisGraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysis
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
 
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAGAI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
AI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning FrameworkAI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning Framework
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Studiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting softwareStudiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting software
 
Breaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdfBreaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdf
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
iGaming Platform & Lottery Solutions by Skilrock
iGaming Platform & Lottery Solutions by SkilrockiGaming Platform & Lottery Solutions by Skilrock
iGaming Platform & Lottery Solutions by Skilrock
 
Crafting the Perfect Measurement Sheet with PLM Integration
Crafting the Perfect Measurement Sheet with PLM IntegrationCrafting the Perfect Measurement Sheet with PLM Integration
Crafting the Perfect Measurement Sheet with PLM Integration
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 

Querying solr

  • 1. Samuel Solís || @estoyausente Querying Solr
  • 2. Samuel Solís || @estoyausente ¿Quién **** soy?
  • 3. Samuel Solís || @estoyausente
  • 4. Samuel Solís || @estoyausente ¿Qué es Solr?
  • 5. Samuel Solís || @estoyausente Solr y Drupal
  • 6. Samuel Solís || @estoyausente
  • 7. Samuel Solís || @estoyausente
  • 8. Samuel Solís || @estoyausente Mi problema: D6
  • 9. Samuel Solís || @estoyausente
  • 10. Samuel Solís || @estoyausente Más allá del módulo
  • 11. Samuel Solís || @estoyausente Hacer una query
  • 12. Samuel Solís || @estoyausente http://searchengine.local:8983/solr/search/select/?wt=json&q= vino&rows=30&defType=edismax&qf=ts_title+terms_ts_title+term s_ts_description+tws_producer_name_fulltext+tws_product_type +ss_variedad_principal+tws_do_fulltext+ss_sub_product_type+ss _region+tws_country_fulltext+ts_maridaje_keywords&start=0&m m=1&mm.autoRelax=true&ps=1&bf=if(gt(its_rating_count,4),fts_r ating_average,0)&spellcheck=on&spellcheck.q=vino&fq=ss_langc ode:es&fq=bs_on_sale:true&facet=on&facet.mincount=1&facet.fi eld=ss_sub_product_type&facet.field=ss_variedad_principal&face t.field=ss_country&facet.field=ss_do&facet.field=ss_producer_na me&facet.field=ss_format_type
  • 13. Samuel Solís || @estoyausente
  • 14. Samuel Solís || @estoyausente wt=json // Tipo de salida (no necesario en Solr > 8.0) q=vino // Término a buscar rows=30 // Nº de filas a retornar defType=edismax // Tipo de query parser start=0 // paginador mm=1 // Minimal match Algunas reglas generales.
  • 15. Samuel Solís || @estoyausente Query fields qf=ts_title^9+terms_ts_title+terms_ts_description+tws_pr oducer_name_fulltext+tws_product_type+ss_variedad_princi pal+tws_do_fulltext^5+ss_sub_product_type+ss_region+tws_ country_fulltext+ts_maridaje_keywords
  • 16. Samuel Solís || @estoyausente Boost bf=if(gt(its_rating_count,4),fts_rating_average,0)
  • 17. Samuel Solís || @estoyausente Spellcheck spellcheck=on spellcheck.q=vino
  • 18. Samuel Solís || @estoyausente Filtros fq=ss_langcode:es fq=bs_on_sale:true
  • 19. Samuel Solís || @estoyausente Facets facet=on facet.mincount=1 facet.field=ss_sub_product_type facet.field=ss_variedad_principal
  • 20. Samuel Solís || @estoyausente Depuración de errores
  • 21. Samuel Solís || @estoyausente Tres preguntas a resolver ¿Por qué algo sale? ¿Por qué sale donde sale? ¿Por qué no sale?
  • 22. Samuel Solís || @estoyausente 1 ¿Por qué algo sale? ¿Por qué sale donde sale?
  • 23. Samuel Solís || @estoyausente debug debug=on
  • 24. Samuel Solís || @estoyausente "4yh6ae-search_index-entity:bb_product/1062611:es": "n12.092266 = sum of:n 8.292266 = max plus 0.01 times others of:n 5.5033407 = weight(terms_ts_title:barahonda in 2397) [SchemaSimilarity], result of:n 5.5033407 = score(doc=2397,freq=1.0 = termFreq=1.0n), product of:n 5.788076 = idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from:n 153.0 = docFreqn 50099.0 = docCountn 0.9508066 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength)) from:n 1.0 = termFreq=1.0n 1.2 = parameter k1n 0.75 = parameter bn 3.5509093 = avgFieldLengthn 4.0 = fieldLengthn 8.121311 = weight(terms_ts_description:barahonda in 2397) [SchemaSimilarity], result of:n 8.121311 = score(doc=2397,freq=2.0 = termFreq=2.0n), product of:n 5.7482705 = idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from:n 79.0 = docFreqn 24934.0 = docCountn 1.4128269 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength)) from:n 2.0 = termFreq=2.0n 1.2 = parameter k1n 0.75 = parameter bn 45.26947 = avgFieldLengthn 40.96 = fieldLengthn 5.419983 = weight(tws_producer_name_fulltext:barahonda in 2397) [SchemaSimilarity], result of:n 5.419983 = score(doc=2397,freq=1.0 = termFreq=1.0n), product of:n 5.419983 = idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from:n 216.0 = docFreqn 48901.0 = docCountn 1.0 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1) from:n 1.0 = termFreq=1.0n 1.2 = parameter k1n 0.0 = parameter b (norms omitted for field)n 6.1721554 = weight(ts_title:barahonda in 2397) [SchemaSimilarity], result of:n 6.1721554 = score(doc=2397,freq=1.0 = termFreq=1.0n), product of:n 5.788255 = idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from:n 153.0 = docFreqn 50108.0 = docCountn 1.066324 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength)) from:n 1.0 = termFreq=1.0n 1.2 = parameter k1n 0.75 = parameter bn 4.717211 = avgFieldLengthn 4.0 = fieldLengthn 3.8 = FunctionQuery(if(gt(long(its_rating_count),const(4)),float(fts_rating_average),const(0))), product of:n 3.8 = if(gt(long(its_rating_count)=19,const(4)),float(fts_rating_average)=3.8,const(0))n 1.0 = boostn 1.0 = queryNormn",
  • 25. Samuel Solís || @estoyausente
  • 26. Samuel Solís || @estoyausente 60.223747 = sum of: 56.423748 = max plus 0.01 times others of:[matchs de campos] 3.8 = [boots general] Suma final TIE param
  • 27. Samuel Solís || @estoyausente 49.530067 = weight(terms_ts_title:barahonda in 2397) [SchemaSimilarity], result of: 49.530067 = score(doc=2397,freq=1.0 = termFreq=1.0), product of: 9.0 = boost 5.788076 = idf 0.9508066 = tfNorm Suma por campo Inverse document frequency = log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5) Normalized term frequency (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength)) Boost forzado
  • 28. Samuel Solís || @estoyausente Extra boost 3.8 = product of: 3.8 = if(gt(long(its_rating_count)=19,const(4)),float(fts_rating _average)=3.8,const(0)) 1.0 = boost
  • 29. Samuel Solís || @estoyausente 2 ¿Por qué no sale?
  • 30. Samuel Solís || @estoyausente
  • 31. Samuel Solís || @estoyausente
  • 32. Samuel Solís || @estoyausente Ya casi hemos acabado
  • 33. Samuel Solís || @estoyausente solrconfig.yml
  • 34. Samuel Solís || @estoyausente RequestHandlers <requestHandler name="/suggest" class="solr.SearchHandler"> <lst name="defaults"> <str name="suggest">true</str> <str name="suggest.dictionary">blendedSuggester</str> <str name="suggest.count">15</str> </lst> <arr name="components"> <str>suggest</str> </arr> </requestHandler>
  • 35. Samuel Solís || @estoyausente Search Component <searchComponent name="suggest" class="solr.SuggestComponent"> <lst name="suggester"> <str name="name">blendedSuggester</str> <str name="lookupImpl">BlendedInfixLookupFactory</str> <str name="indexPath">blended_suggestions</str> <str name="field">name_autocomplete</str> <str name="dictionaryImpl">DocumentExpressionDictionaryFactory</str> <str name="weightExpression">((its_top_ventas * 2) + its_mejor_valorados)</str> <str name="sortField">its_top_ventas</str> <str name="suggestAnalyzerFieldType">text</str> <str name="buildOnStartup">false</str> <str name="buildOnCommit">false</str> </lst> </searchComponent>
  • 36. Samuel Solís || @estoyausente Recap
  • 37. Samuel Solís || @estoyausente
  • 38. Samuel Solís || @estoyausente La página de gracias de bodeboca