Hi!

Out of curiosity: How would one implement "search by example" with Solr?

What I mean:

Say I have a result entry with these fields/attributes:

id: 1
title: blue big slow car
color: blue
size: 30
maxspeed: 100
make: buses inc.

What would I have to do in order to find "similar" items? Do a search
for all these attribute/values as OR statement?

(title:"blue big slow car" OR color:blue OR size:30 OR maxspeed:100 OR
make:"buses inc.") -id:1

Would this bring up useful results?

This might be a more general Lucene question, but since I don't use
Lucene anywhere else but in Solr context, I'd be happy to find an
answer here.

Thanks!

Marian

Reply via email to