Pregunta

Consider following two queries: query1: term1 term2 query2: term1 term1 term2 Will there be any difference in searched documents ordering?? I mean will solr give more weightage to "term1" in query2. As per my understanding solr should do that. But I am not sure and need comments from community.

¿Fue útil?

Solución

Yes, but there is no need to use a hack like this. You can boost a query term, like:

term1^2 term2

See the QueryParser syntax documentation

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top