INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Proposed Search Engine Change (Advice Wanted)  (Read 1412 times)

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Proposed Search Engine Change (Advice Wanted)
« on: May 21, 2007, 11:42:21 am »

When Media Center processes searches, currently it does it in two steps.

First, it applies any rules like "bob dylan" or "hard rock".

Second, it applies post processors (things that start with ~) like ~n=100 to limit to 100 tracks.

We recently changed the search engine so that we _could_ do all of this in one step.  That way, the order, parenthesis, etc. would be honored for special processors.

Would this be a good change?  It would break some existing smartlists since ~n=100 rock would return less than 100 songs after the change.

However, it also allows new things like this example to get 200 songs:
rock ~n=100 or folk ~n=100

Thanks for any advice.
Logged
Matt Ashland, JRiver Media Center

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Proposed Search Engine Change (Advice Wanted)
« Reply #1 on: May 21, 2007, 01:10:55 pm »

I think it sounds fine.  Basically, to fix post-processed search rules you'd have to enclose the search in () and then add the ~n=100 to the outside of the ()?

Could you show a couple of before/after examples to make sure we fully understand what we're getting?
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

ghappe-MC

  • Recent member
  • *
  • Posts: 31
Re: Proposed Search Engine Change (Advice Wanted)
« Reply #2 on: May 24, 2007, 01:48:25 am »

About search engines in general:

I.M.H.O any search engine should come, for syntax, as close to the world standard for queries, being native SQL  ;D, as possible, and therefore the changed version would be better, or more generic.

But now that we're at it, any change of adding the functionality of a drop-down list box giving access to all your quiries / smartlists? ?

Grtz,

Guido

Logged
Having doubts is the privilege of intelligent people, being Ignorant the faith of all the others

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Proposed Search Engine Change (Advice Wanted)
« Reply #3 on: May 24, 2007, 10:52:52 am »

it sounds like a great idea. but i guess it takes some experimenting to see what the drawbacks are.
Logged

hit_ny

  • Citizen of the Universe
  • *****
  • Posts: 3310
  • nothing more to say...
Re: Proposed Search Engine Change (Advice Wanted)
« Reply #4 on: May 24, 2007, 12:53:19 pm »

We recently changed the search engine so that we _could_ do all of this in one step.  That way, the order, parenthesis, etc. would be honored for special processors.
If this means it executs as written, then i'm all for it.

Would make smart lists more intuitive, following the train of thought so to speak.

What about modifiers, those uber class citizens ?

Quote
However, it also allows new things like this example to get 200 songs:
rock ~n=100 or folk ~n=100
i interpret this to mean

- find all tracks with rock in them (for all searchable fields)
- give me 100 random tracks from that list

or

- Also find all tracks with folk in them (for all searchable fields)
- give me 100 random tracks from that list

for a total of 100 each of both random rock  & folk.

sounds fine to me

Quote
Would this be a good change?  It would break some existing smartlists since ~n=100 rock would return less than 100 songs after the change.

- give me 100 random tracks
- out of those, give me all tracks with rock in them (for all searchable fields)

i might expect this to give random amounts of tracks with rock in them. But the current system has to be user friendly that way isnt it ;)

Isn't to preferable to say

rock ~n=100

instead.

to me this makes the result more predictable, therefore easier to construct more complicated searches.

Now the modifiers are not so uber anymore and thats a good thing in my books, otherwise it can get difficult to figure out which modifier is firing off (for smartlists with many modifiers in them). I bet it would make things a lot easier for that user formerly-known as tab (is he called the 'bat' now ?)

This needs more playing with, thats all i can think of, at first glance.
Logged
Pages: [1]   Go Up